• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 358
  • Last Modified:

CPANEL and PERL / CGI

i have to web hosting accounts and neither will let me use perl or cgi scripts!

everytime i attempt to run a script i get on both accounts:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@extreme-templates.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

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.


------------------------------------------------------------------------------
0
John-Bayles
Asked:
John-Bayles
  • 2
1 Solution
 
Sam PanwarSr. Server AdministratorCommented:
Hi,

That is a server error that the host must resolve on their end.  So contact your hosting company where you yake hosting of your website either try these.



1) what does the error log say?
2) what happens when you run the script like so:
  ./scriptname.cgi
   # not like
   perl scriptname.cgi
3) if #2 fails, check that your first line says #!/path/to/perl, do a
"which perl" if you don't know your full /path/to/perl
4) If #2 works, su to the webserver user (nobody?) and try to run the
program, make sure script is 755 permissions, and directory too.
5) Assuming all the above works, is the first line printed out
"Content-type: text\html/n/n" ??
6) Look and use the ScriptLog directive if you still can't find out what
is happening.
0
 
Sam PanwarSr. Server AdministratorCommented:
Go to

cpanel> web log > 

see the log and tell the what log say
0
 
nltechCommented:
are you putting the scripts in your cgi-bin?  do they have proper permissions (go into file manager and check. should be 755).

do the cgi-scripts that come bundled with your cpanel work?  cgiemail is a common one that's included. try going to http://www.yourdomain.com/cgi-bin/cgiecho if it redirects to http://web.mit.edu/wwwdev/cgiemail/nopath.html (which is what happens when you don't supply any parameters when calling it), then things are functioning fine, it's a problem with the script you're trying to run.

if cgiecho is present, but doesn't run, then you need to contact your provider to straighten things out.

if cgiecho does function, and you're putting your scripts in your cgi-bin with 755 permissions, then you need to check them out.. path to perl (viewable from your cpanel home), syntax, etc.
0
 
John-BaylesAuthor Commented:
yes the files are in my cgi-bin and the permissions are set correctly
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now