.josh Posted January 21, 2007 Share Posted January 21, 2007 okay what's going on?I have the following script:helloworld.cgi[code]#!/usr/local/bin/perlprint "Content-type: text/html\n\n";print "<HTML><HEAD>";print "<TITLE>CGI Test</TITLE>";print "</HEAD>";print "<BODY><H2>I just wrote a web page using Perl!</H2>";print "</BODY></HTML>";[/code]-permissions on file is 777-i telneted to my site and did "which perl" and the path is right-I can run the script just fine through telnet (putty) but if i try to do http://www.mysite.com/cgi-bin/helloworld.cgi it gives me the following error:[quote]Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.More information about this error may be available in the server error log.Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. [/quote]so...any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/35127-cant-even-do-a-perl-hello-world/ Share on other sites More sharing options...
.josh Posted January 22, 2007 Author Share Posted January 22, 2007 Well I contacted my host in regards to this issue, and he told me I shouldn't set the file permission to 777 (which, I knew that, but I was trying everything, in an attempt to solve it on my own...) but other than that, it should be working. So I changed it to 755 and sure enough, it is working.... and it still worked when I changed it back to 777. Now, as you can see, I'm a total noob at perl, so far. So I [i]could[/i] be wrong, but I really didn't think that simply changing the chmod from 777 to 755 would really make a difference here, so I asked the guy why it wasn't working. Did I not do something right? Some sort of setting in cpanel? What??? And he wouldn't tell me. On the one hand, I'm kind of upset that he wouldn't tell me, but on the other hand, it leads me to believe that my host probably messed up some setting on their end, as far as installation goes, or something. I really don't know. But who cares, it works now. Quote Link to comment https://forums.phpfreaks.com/topic/35127-cant-even-do-a-perl-hello-world/#findComment-166222 Share on other sites More sharing options...
fenway Posted January 22, 2007 Share Posted January 22, 2007 I'm sure it was some apache issue on their end. Quote Link to comment https://forums.phpfreaks.com/topic/35127-cant-even-do-a-perl-hello-world/#findComment-166376 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.