• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

need help moving cgi-bin

M

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

Software error:
Can't locate ../lib/blib.pl in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl . /etc/httpd/ /etc/httpd/lib/perl) at /var/www/vhosts/domain.org/subdomains/do/httpdocs/cgibin/doAdmin/index.pl line 3.

the code I am running is this

Code:
# head index.pl
#!/usr/bin/perl

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
Code:
# 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.
 
Back
Top