Jump to content

Recommended Posts

Dear friends,

 

thing are now better than y'day.

indide test.py I have this.

#!C:\Program Files\Python_2_5_1\python.exe

import cgi

import re

def index(req):

  return "Test successful";

 

I don't get an error after entering user name and password, I get a blank page.

 

help me please

Link to comment
https://forums.phpfreaks.com/topic/85225-solved-bank-page-accessin-cgi-bintestpy/
Share on other sites

Well, I have place .htaccess file in to one of my website and below is what is in that file, It does actually work, apache just doesn't allow me to work in side cgi-bin for reasons I don't know.

 

please help.

 

AuthType Basic

AuthName "Authorization Required"

AuthUserFile C:\websites\cgi-bin\.htpasswd

Require user lefu

Ummm... you don't have access to your CGI-BIN folder because you don't have acesss to cgi-bin!

 

All you can do is run scripts from there. Anything accessed will be interpreted as a script. Directory indexes are not allowed and this is a script-only folder if properly set up. No amount of adding config files (should) be able to break this.

 

Is your problem one of being unable to launch/run CGI scripts??

 

You'd need to better define "work" and "work inside"

 

 

If the typical "Hello world" script works then I'd guess you're "cooking with gas"

Otherwise there might be some underlying problem relating to the script being launched.

 

If on Linux you may need to set appropriate permissions I guess using chmod - however I'm not a Linux guru - still, it's worth checking before delving too deep into Apache.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.