Jump to content

Recommended Posts

Posted

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:

 

The server encountered an internal error or misconfiguration and was unable to complete your request.

 

The instructions for the script say:

 

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.

Example: change #!/usr/bin/perl to #!/usr/local/bin/perl if perl is located in /usr/local/bin/perl.

 

So... where is perl located in a typical directory? Is this posted somewhere, but this newbie just missed it?

Posted
Ummm. How come in Cpanel (server 23) it says

 

Perl Path /usr/bin/perl

 

I haven't had any trouble using that.

There is a symbolic link at /usr/bin/perl so either that or /usr/local/bin/perl will work.

Posted

Yeah, I did see that in the cPanel. Duh!

 

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.

 

Here's what I tried:

 

www.bronerfamily.us/cgi-bin/simpleforum.cgi

www.bronerfamily.us/~bronerf/cgi-bin/simpleforum.cgi

www.bronerfamily.us/~bronerf/simpleforum.cgi

 

Is the fault with the url or perhaps with the way the file was uploaded?

Posted

If the file is in your cgi-bin directory then to run it you would use http://www.bronerfamily.us/cgi-bin/simpleforum.cgi 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.

 

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...