Jump to content

[SOLVED] Bank page accessin /cgi-bin/test.py


Lefu

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.