spare
September 10th, 2010, 02:48 AM
Hello,
I'm trying to install a Perl script w/ modules for the first time. I have been trying for days without luck. The script is proven to work so it isn't that. I think that my paths are wrong but I'm not sure.
I really could use some help.
============================================
My webpath is: /home/USERNAME/public_html/
which serves: http://www.your_domain.com/
Path to cgi-bin is: /home/USERNAME/public_html/cgi-bin/
which serves: http://www.your_domain.com/cgi-bin/
Path to PERL: /usr/bin/perl
The host provides Cpanel from which installs modules directly from Cpan and stores them in here:
/home/USERNAME/.cpan/build
=============================================
The host also has a few Perl based programs that it will install but when it does, it doesn't use the CGI-BIN but installs everything in a WWW folder.
The extensions for files that I'm trying to install are .pl, .pm, .html, and .ini I have given all of the .pl files 755 permissions and the rest have 644.
I have tried placing all of the files in one directory, using the cgi-bin, etc. This was the reccommended structure:
/home/USERNAME/ public_html/cgi-bin/TheApp/
TheApp/templates/
TheApp/lib/
TheApp/lib/MyLib/
Recommended path to the modules: use lib '/var/www/cgi-bin/TheApp/lib';
I'm trying to install a Perl script w/ modules for the first time. I have been trying for days without luck. The script is proven to work so it isn't that. I think that my paths are wrong but I'm not sure.
I really could use some help.
============================================
My webpath is: /home/USERNAME/public_html/
which serves: http://www.your_domain.com/
Path to cgi-bin is: /home/USERNAME/public_html/cgi-bin/
which serves: http://www.your_domain.com/cgi-bin/
Path to PERL: /usr/bin/perl
The host provides Cpanel from which installs modules directly from Cpan and stores them in here:
/home/USERNAME/.cpan/build
=============================================
The host also has a few Perl based programs that it will install but when it does, it doesn't use the CGI-BIN but installs everything in a WWW folder.
The extensions for files that I'm trying to install are .pl, .pm, .html, and .ini I have given all of the .pl files 755 permissions and the rest have 644.
I have tried placing all of the files in one directory, using the cgi-bin, etc. This was the reccommended structure:
/home/USERNAME/ public_html/cgi-bin/TheApp/
TheApp/templates/
TheApp/lib/
TheApp/lib/MyLib/
Recommended path to the modules: use lib '/var/www/cgi-bin/TheApp/lib';