Pankaj Kapare wrote:

> 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

Hi Pankaj,

First couple possibilities that come to mind--your script still has Windows linefeeds. 
 Read back through the list; there are numerous suggestions for this problem.

Something is wrong with your opening line, or script header.
Since Windows ignores this line, errors here can go unnoticed until you try to run as 
CGI.  The standard is:
#!/usr/bin/perl -w

which corresponds to the default perl installation on most Unix boxes.

Joseph


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to