I am in the process of migrating from my current cPanel VPS to a new cPanel VPS.
My application is using Perl, and thus needs access to the Perl Modules. I have installed all the Perl Modules that are on my current VPS to the new VPS.
Many of the Perl Modules that are used in our application are in a directory in my cPanel account, in the cgi-bin directory:
home/abccompany/public_html/cgi-bin
When I test my application on the new vps I get an error message saying the Perl Modules in my cPanel account can't be located.
This makes sense because I haven't set the @INC environment to look in my cgi-bin directory.
This was done on my current server many years ago and the programmer that set this up is no longer around. I am a novice at much of this, so I need help.
On my current server, when I type command:
perl -e 'printf "%d %s\n", $i++, $_ for @INC'
I get:
root [/]# perl -e 'printf "%d %s\n", $i++, $_ for @INC'
0 /usr/local/lib64/perl5
1 /usr/local/share/perl5
2 /usr/lib64/perl5/vendor_perl
3 /usr/share/perl5/vendor_perl
4 /usr/lib64/perl5
5 /usr/share/perl5
6 .
root [/]# _
On the new server, when I type the same command, I get:
root [/]# perl -e 'printf "%d %s\n", $i++, $_ for @INC'
0 /usr/local/lib64/perl5
1 /usr/local/share/perl5
2 /usr/lib64/perl5/vendor_perl
3 /usr/share/perl5/vendor_perl
4 /usr/lib64/perl5
5 /usr/share/perl5
root [/]# _
As you can see, on the current server, line 6 is . (I'm not sure about the ( . ) but I think it is important because someone suggested it represents the 'current working directory' in my cPanel account. They suggested I run:
export PERL5LIB=.
When I tried this the server hung and nothing happened. When I ran the command above again, it is the same as before.
What command do I run, and where do I run it, to set the cgi-bin, or the 'current working directory' to be included in @INC?
Do I need to issue this command from a certain directory? Can this be done using cPanel's Terminal?
All help is greatly appreciated.
Thank you!
My application is using Perl, and thus needs access to the Perl Modules. I have installed all the Perl Modules that are on my current VPS to the new VPS.
Many of the Perl Modules that are used in our application are in a directory in my cPanel account, in the cgi-bin directory:
home/abccompany/public_html/cgi-bin
When I test my application on the new vps I get an error message saying the Perl Modules in my cPanel account can't be located.
This makes sense because I haven't set the @INC environment to look in my cgi-bin directory.
This was done on my current server many years ago and the programmer that set this up is no longer around. I am a novice at much of this, so I need help.
On my current server, when I type command:
perl -e 'printf "%d %s\n", $i++, $_ for @INC'
I get:
root [/]# perl -e 'printf "%d %s\n", $i++, $_ for @INC'
0 /usr/local/lib64/perl5
1 /usr/local/share/perl5
2 /usr/lib64/perl5/vendor_perl
3 /usr/share/perl5/vendor_perl
4 /usr/lib64/perl5
5 /usr/share/perl5
6 .
root [/]# _
On the new server, when I type the same command, I get:
root [/]# perl -e 'printf "%d %s\n", $i++, $_ for @INC'
0 /usr/local/lib64/perl5
1 /usr/local/share/perl5
2 /usr/lib64/perl5/vendor_perl
3 /usr/share/perl5/vendor_perl
4 /usr/lib64/perl5
5 /usr/share/perl5
root [/]# _
As you can see, on the current server, line 6 is . (I'm not sure about the ( . ) but I think it is important because someone suggested it represents the 'current working directory' in my cPanel account. They suggested I run:
export PERL5LIB=.
When I tried this the server hung and nothing happened. When I ran the command above again, it is the same as before.
What command do I run, and where do I run it, to set the cgi-bin, or the 'current working directory' to be included in @INC?
Do I need to issue this command from a certain directory? Can this be done using cPanel's Terminal?
All help is greatly appreciated.
Thank you!