• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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