|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
cannot run python on apache 1.3.17
On apache 1.3.17, I can run perl cgi and shell script cgi with no problem. But, I cannot run python cgi. It gives me this Internal Server error.
Here is the script. I chmod +x test.py #!/usr/bin/python print "Content-Type: text/plain\n\n" print "Hello, Python!" # print a test string ----------------------- Is there an Apache config error? Thank you, Cindy |
|
#2
|
|||
|
|||
|
error log
When looking into the apache error log, I see these errors:
ld.so.1: /usr/local/bin/python: fatal: libnet.so: open failed: No such file or directory [Thu May 31 18:35:56 2001] [error] [client 65.11.56.11] Premature end of script headers: /var/www/cgi-bin/python1.py |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > cannot run python on apache 1.3.17 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|