Confusion regarding Python support

Status
Not open for further replies.

Synkc

Active Member
Messages
1,765
Reaction score
0
Points
36
Python has been installed on all servers. The first thread you indicated was posted three years ago. ;)
 

sumittada

New Member
Messages
4
Reaction score
0
Points
0
Thanks synkc
Even I had read somewhere on the site that Python is supported, but when i tried running a very simple python program i got the "500 Internal Server Error"
And the error log just shows:
File does not exist: /home/sumit/public_html/500.shtml

I have changed the file permissions to 755 and the contents of the file are:
#!/usr/bin/python
print "Content-Type: text/plain\n\n"
print "Hello, World!\n"

I tried with both .cgi and .py extensions and in fact perl scripts are giving the same error!

Here are the links:
http://puzzles.x10hosting.com/cgi-bin/python.py
http://puzzles.x10hosting.com/cgi-bin/python.cgi
http://puzzles.x10hosting.com/cgi-bin/perl.cgi
Edit:
python.py and perl.pl are working now!
Perl started working after changing the path to /usr/loacl/bin
and i think in case of python i had set the permissions for .cgi but missed to change the same for .py file.

Just one question now:
Why they wont the perl script work with .cgi extension?
 
Last edited:

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
Perl isn't configured to work with .cgi extension, you must use .pl
 
Status
Not open for further replies.
Top