1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice

Perl Help!!

Discussion in 'Plesk for Linux - 8.x and Older' started by donmatlock, Dec 5, 2005.

  1. donmatlock

    donmatlock Guest

    0
     
    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
     
  2. servertune

    servertune Guest

    0
     
    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
     
  3. donmatlock

    donmatlock Guest

    0
     
    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.
     
  4. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    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.
     
  5. donmatlock

    donmatlock Guest

    0
     
    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
     
  6. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    No problem with asking questions, that what these forums are for. Good luck.;)
     
Loading...