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

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?
0
tjahn
Asked:
tjahn
  • 4
  • 2
1 Solution
 
Trevor013097Commented:
Have you remembered to change the permissions to 755 so that the Perl script is executable.

Trevor.


0
 
Trevor013097Commented:
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.


0
 
tjahnAuthor Commented:
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.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Trevor013097Commented:
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.


0
 
Trevor013097Commented:
tjahn,

I strongly suspect that the permissions have not be set and therefore the server will not be allowed to execute the script.

For scripts on the server you should set the chmod property to 755 or 777.  You can do this through telnet or using a FTP utility like WS_FTP.

Trevor.


0
 
tjahnAuthor Commented:
Unfortunately my ISP does not support PERL-scripts for security reasons.

But beside that, thank you very much!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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