Add the following to the beginning of your script.
#!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser);
….
This will output error messages to the browser.
James C Schappet Principal Internet Competency Center State Street Global Advisors Boston 617-664-5539 (Direct Line) 707-516-1269 (Main Fax)
Get emPowered by Webmaster http://webmaster.ssga.statestr.com
-----Original Message-----
Hi
I am trying to run one perl script on APACHE server.My server is running well.I have installed perl properly and it is configured with apache and also running well with out any error.Now my web server is on UNIX system.I am saving my scripts in web dirctory of server.When I tries to run the script on server machine itself it runs fine.
Now my problem is when I write script on other windows machine and save it on the unix server ,changes its permissions and try to acess it from other machine it gives error as follows:
Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root@LinuxRohan. 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. while same script runs fine at shell prompt but gives error when i tries to acess it through web browser. But scripts developed on the server with vi editor runs fine. What could be the reason? Is it regarding the editor i am using? or any other thing? Thanks in advance! pankaj |
- [Perl-unix-users] Perl script on Apache Unix server Pankaj Kapare
- RE: [Perl-unix-users] Perl script on Apache Unix serv... James Schappet
- RE: [Perl-unix-users] Perl script on Apache Unix serv... Martin Vernooij
- RE: [Perl-unix-users] Perl script on Apache Unix serv... Matt Schneider
- Re: [Perl-unix-users] Perl script on Apache Unix ... $Bill Luebkert
- Re: [Perl-unix-users] Perl script on Apache Unix serv... Andy_Bach
- Re: [Perl-unix-users] Perl script on Apache Unix ... $Bill Luebkert