running a perl script throws internal 500 error.

Discussion in 'Programming' started by doridori, Dec 22, 2008.

  1. #1
    hey guys when i run test.pl in command line it works, but whe i run it in browser, it throws 500 internal server error.......
    
    #!/usr/bin/perl
    
    print "Content-type: text/html\n\n";
    
    print <<END_HTML;
    <html>
    <head></head>
    <body>Hello, World!</body>
    </html>
    END_HTML
    Code (markup):

     
    doridori, Dec 22, 2008 IP
  2. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I haven't done Perl in a long time but if it's throwing a 500 error, it will have some more information in your Apache log. Look in there and see what the error really is.
     
    TwistMyArm, Dec 23, 2008 IP
  3. doridori

    doridori Banned

    Messages:
    473
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    fixed....forgot to chown public_html
     
    doridori, Dec 23, 2008 IP