Lefu Posted January 9, 2008 Share Posted January 9, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/85225-solved-bank-page-accessin-cgi-bintestpy/ Share on other sites More sharing options...
Lefu Posted January 9, 2008 Author Share Posted January 9, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/85225-solved-bank-page-accessin-cgi-bintestpy/#findComment-434925 Share on other sites More sharing options...
madmax Posted January 9, 2008 Share Posted January 9, 2008 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" Quote Link to comment https://forums.phpfreaks.com/topic/85225-solved-bank-page-accessin-cgi-bintestpy/#findComment-435046 Share on other sites More sharing options...
Lefu Posted January 10, 2008 Author Share Posted January 10, 2008 thanx I am trying that now, I will just place a python file and see if it does work, first is to configure python apache, they did work fine with no errors. you comment means a lot, and now I can work with it. Quote Link to comment https://forums.phpfreaks.com/topic/85225-solved-bank-page-accessin-cgi-bintestpy/#findComment-435403 Share on other sites More sharing options...
madmax Posted January 10, 2008 Share Posted January 10, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/85225-solved-bank-page-accessin-cgi-bintestpy/#findComment-435772 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.