Solved

problem with perl-script and apache-server

Posted on 1998-05-27
6
172 Views
Last Modified: 2010-03-04
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
Comment
Question by:tjahn
  • 4
  • 2
6 Comments
 
LVL 5

Expert Comment

by:Trevor013097
ID: 1206398
Have you remembered to change the permissions to 755 so that the Perl script is executable.

Trevor.


0
 
LVL 5

Expert Comment

by:Trevor013097
ID: 1206399
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
 

Author Comment

by:tjahn
ID: 1206400
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 5

Expert Comment

by:Trevor013097
ID: 1206401
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
 
LVL 5

Accepted Solution

by:
Trevor013097 earned 10 total points
ID: 1206402
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
 

Author Comment

by:tjahn
ID: 1206403
Unfortunately my ISP does not support PERL-scripts for security reasons.

But beside that, thank you very much!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now