Link to home
Start Free TrialLog in
Avatar of tjahn
tjahn

asked on

problem with perl-script and apache-server

I want to run a simple perl-script on my isp's server. But whenever I call some sample scripts (included with the win32 package), it just doesn't seem to work.

Anybody out there, who can help me?
Avatar of Trevor013097
Trevor013097

Have you remembered to change the permissions to 755 so that the Perl script is executable.

Trevor.


tjahn,

Other things to look out for are:

1) Have you got the correct path to Perl on your ISPs server as your first line.  Should read something like:

#!/bin/perl

or

#!/bin/perl5

or even

#!/bin/usr/perl

2) Does the script require anything from Perl 5.003 and your ISP has only Perl 5.001.

If your ISP has a way to debug scripts then this might provide some useful info.  Try running the script directly from the command line.  Telnet in and in the directory where the script is type:

perl yourscript.pl


Trevor.


Avatar of tjahn

ASKER

The problem is, that I do not actually have telnet-access. Is there another way to change the file attributes? My own machine runs with NT.
tjahn,

You can ftp into your space and then (with an FTP program like WS_FTP you can right-click on the file when it is on the server and select chmod from the menu that pops up.  Then check all the boxes (chmod 777, same effect as 755, if you want 755 then 1st column all boxes and 2nd/3rd colum it is top and bottom boxes) and click OK.

Trevor.


ASKER CERTIFIED SOLUTION
Avatar of Trevor013097
Trevor013097

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tjahn

ASKER

Unfortunately my ISP does not support PERL-scripts for security reasons.

But beside that, thank you very much!