matrixsquare
New Member
- Messages
- 4
- Reaction score
- 0
- Points
- 0
Okay, so I made a helloworld.py file and uploaded it into my cgi-bin folder:
Looks fine, right? Right. I change the permission to 755 as any sane individual world. Lo and behold, I point my browser to http://mse.x10hosting.com/cgi-bin/helloworld.py and it immediately returns an Internal Server Error 500.
I also tweaked the .htaccess file a bit so that .py files can be run anywhere, my .htaccess file now looks like:
The new additions are bolded.
I'm at my wits' end, why the heck is this happening? And more importantly: Is there a solution (there HAS to be! Other users are using Python with x10hosting perfectly fine!)
Thanks in advance for any help, guys .
Edit:
Hahahaha, I'm laughing my butt off right now... My python scripts will run anywhere BUT in the cgi-bin folder!
Man, who the heck set up Python for these servers :nuts:?
Either way, I'm happy, since I can at least use Python now :biggrin:!
#!#!/usr/bin/python
print "Content-Type: text/html"
print """\
<html>
<body>
<h2>Hello World!</h2>
</body>
</html>
"""
Looks fine, right? Right. I change the permission to 755 as any sane individual world. Lo and behold, I point my browser to http://mse.x10hosting.com/cgi-bin/helloworld.py and it immediately returns an Internal Server Error 500.
I also tweaked the .htaccess file a bit so that .py files can be run anywhere, my .htaccess file now looks like:
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName mse.x10hosting.com
AuthUserFile /home/mse/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/mse/public_html/_vti_pvt/service.grp
Options +ExecCGI
AddType application/x-httpd-cgi .pl
AddHandler cgi-script .py
The new additions are bolded.
I'm at my wits' end, why the heck is this happening? And more importantly: Is there a solution (there HAS to be! Other users are using Python with x10hosting perfectly fine!)
Thanks in advance for any help, guys .
Edit:
Hahahaha, I'm laughing my butt off right now... My python scripts will run anywhere BUT in the cgi-bin folder!
Man, who the heck set up Python for these servers :nuts:?
Either way, I'm happy, since I can at least use Python now :biggrin:!
Last edited: