#1
  1. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Posts
    28
    Rep Power
    0

    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. #2
  3. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Posts
    28
    Rep Power
    0

    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

IMN logo majestic logo threadwatch logo seochat tools logo