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
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

need help moving cgi-bin

Discussion in 'Plesk for Linux - 8.x and Older' started by micah, Mar 22, 2006.

  1. micah

    micah Guest

    Let me start by saying I am not a perl guy or a plesk guy, I just got this job dropped in my lap. I am however familiar with linux. Also, I'm going to try and give as much info as I can, even if its more than you need(want) to know.

    Basicly I need to move the cgi-bin to httpdocs/cgi-bin, because of how our webdeveloper developed the scripts.

    i've uncommented "AddHandler cgi-script .cgi" in the httpd.conf and restarted httpd. However after doing this, scripts that work perfectly in the cgi-bin in the original location fail when I move them to the new location. the error i get is

    the code I am running is this

    # head index.pl
    require "../lib/blib.pl";
    require "../lib/uploadlib.pl";
    require "../lib/dolib.pl";
    require "../lib/printFadeSlideshow.pl";
    use CGI;
    use CGI::Carp qw(fatalsToBrowser);
    permisions are
    # ll index.pl
    -rwxr-xr-x  1 iwsadmin psacln 5316 Mar 22 08:24 index.pl
    # ll ../lib/blib.pl
    -rwxr-xr-x  1 iwsadmin psacln 68201 Mar 21 14:23 ../lib/blib.pl
    oh, and im running RHE 4 and plesk 7.5 reloaded.

    And also, this happens to be a subdomain at the moment, but it will move to a normal domain later. If i can do it server wide would be great too.

    (also running the script from the command line as root works perfectly, ie. # perl index.pl)

    Thanks in advance for any help, even if it ends up pointing to something that may be staring right at me.
  2. micah

    micah Guest