• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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