• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Perl Help!!

D

donmatlock

Guest
Hi all,
I want to thank all in advance for any responses I get to this I am sure easy question.
Where would I find info on the following:
running perl scripts
path that a user can install perl scripts
path to the plesk root directory
what extensions are used .pl cgi or both

If someone could point me in the right direction of where this info is held, would be much appreciated.

Don
 
In response to your questions:

"Running perl scripts"
What do you mean by that? Do you mean testing Perl scripts?
If yes, all you need is run the script at the prompt.

"path that a user can install perl scripts"
Any where in your virtual server. It doesn't have to be in the cgi-bin directory.

"path to the plesk root directory"
/home/httpd/vhosts/

what extensions are used .pl cgi or both
Either or, it doesn't matter. If you are novice in cgi/Perl scripting and need to learn more, I suggest you visit Perl Online Documentation at: http://www.perl.org/docs.html
 
Perl:)

Hi,
Sorry to be so vague in my initial mails, but I was not sure how detailed I should be..so i threw it at ya.
Basically I am an admin for the plesk, I am not too familair with alot of it and when a customer asked these questions:

1. Am I allowed to run Perl Scripts?
2. What is the name of the directory in which they should be installed?
3. What is the path to Perl?
4. What is the file path to my root directory?
5. What file extensions are allowed: .pl or .cgi or both?

(Actual copy and paste from customer)

I was a little stumped at some of the answers I could give.

What I am getting from info on the web and your posts is that yes he is able to run perl scripts.
I believe the scripts should go in the /cgi-bin directory?

I think when he asks where the directory for perl is he means the main executible for perl

So the path to his root dir would be /home/httpd/vhosts/domain?

Thanks again for your help.
 
It is always best to include some information that will make it easier to assist you, such as OS, version of Plesk, etc.

It's best to put your perl scripts in the cgi-bin. You should chmod them to 755 to make them work. Either suffix, pl or cgi will work. As far as the root directory goes, in older installations of Plesk it is indeed /home/httpd/vhosts. However, in fresh installs of Plesk 7.5.4 it is now /var/www/vhosts - in RedHat versions at any rate. The path to perl is /usr/bin/perl.
 
Thank you

Thank you all for your suggestions, I was able to pass onto my customer the correct answers. When I was learning Linux it was drilled into me "RTFM" and now when I ask questions I feel ackward asking:)...
Don
 
Back
Top