Where Are The Perl Files?

liunx

Guest
I've uploaded my simpleforum.cgi script to the cgi-bin directory. So far so good. However, I can't get to the forum via http 'cause I get the following error:<br /><br /><i>The server encountered an internal error or misconfiguration and was unable to complete your request.</i><br /><br />The instructions for the script say: <br /><br />If the location of perl on your computer is not /usr/bin/perl, change the location of perl on the very first line of simpleforum.cgi.<br />Example: change #!/usr/bin/perl to #!/usr/local/bin/perl if perl is located in /usr/local/bin/perl.<br /><br />So... where is perl located in a typical directory? Is this posted somewhere, but this newbie just missed it?<!--content-->
All my PERL scripts contain the following first line:<br /><br /><!--coloro:blue--><span style="color:blue"><!--/coloro--><b>#!/usr/local/bin/perl</b><!--colorc--></span><!--/colorc--><br /><br />-kw<!--content-->
Ummm. How come in Cpanel (server 23) it says <br /><br />Perl Path /usr/bin/perl<br /><br />I haven't had any trouble using that.<!--content-->
<!--QuoteBegin-boxturt+Jun 2 2003, 09:34 PM--><div class='quotetop'>QUOTE(boxturt @ Jun 2 2003, 09:34 PM)</div><div class='quotemain'><!--QuoteEBegin-->Ummm. How come in Cpanel (server 23) it says <br /><br />Perl Path /usr/bin/perl<br /><br />I haven't had any trouble using that.<!--QuoteEnd--></div><!--QuoteEEnd--><br /> There is a symbolic link at /usr/bin/perl so either that or /usr/local/bin/perl will work.<!--content-->
Ouch! Good catch, Rick. <br />-kw<!--content-->
I've added this information to the <a href="http://www.totalchoicehosting.com/help/" target="_blank">TCH Help Web site</a> - in both the FAQ and CPanel sections of the site.<br /><br />-kw<!--content-->
Yeah, I did see that in the cPanel. Duh!<br /><br />However, still having problems, so tell me please folks, what is the proper url to use to get to the .cgi file? I've tried a number of things and they still don't work. I've uploaded the .cgi file as text (which is the way it's supposed to be done) so I can't figure out (yet) why I'm not getting it.<br /><br />Here's what I tried:<br /><br />www.bronerfamily.us/cgi-bin/simpleforum.cgi<br />www.bronerfamily.us/~bronerf/cgi-bin/simpleforum.cgi<br />www.bronerfamily.us/~bronerf/simpleforum.cgi<br /><br />Is the fault with the url or perhaps with the way the file was uploaded?<!--content-->
If the file is in your cgi-bin directory then to run it you would use <a href="http://www.bronerfamily.us/cgi-bin/simpleforum.cgi" target="_blank">http://www.bronerfamily.us/cgi-bin/simpleforum.cgi</a> to run it. The error message you are getting could be several things. If you look in your error log you will see more information that could help. My guess is that it is a permissions problem. <br /><br />If the error log (found in your cPanel under the Stats section) says that it can't execute or that a directory is writeable then you need to change the permissions. Try setting the permissions of the file to 755 using the File Manager in cPanel if it is not already set to that.<!--content-->
 
Top