Pankaj,
 
You say that when you develop them on the UNIX machine they run fine but when you developed them on a Windows machine and save them to the UNIX machine they don't run.  The problem might be the difference between Windows and UNIX new line characters.  If you open a file developed on Windows in vi on the UNIX machine and it says [dos] at the bottom that might cause this problem.
 
I'm not sure if there is an easier way to fix it than this but what I have done in the past is to open the script and read each line performing a chop twice to remove the two "invisible" characters that make up the DOS new line and then write it to a new file with a "\n" on the end.

Matt Schneider
Programmer/System Administrator
SKLD Information Services, LLC

-----Original Message-----
From: Martin Vernooij [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 6:20 AM
To: [EMAIL PROTECTED]
Subject: RE: [Perl-unix-users] Perl script on Apache Unix server

Hi,
 
do you have the execute permissions for your script set for the user Apache is running? Most likely Apache is running as user "apache" and you script does not have execute rights for others.
 
Martin
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Pankaj Kapare
Sent: dinsdag 18 februari 2003 14:04
To: [EMAIL PROTECTED]
Subject: [Perl-unix-users] Perl script on Apache Unix server

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 Error

The 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

Reply via email to