CHEAP WEB HOSTING SERVICES AND AFFORDABLE LINUX WEB HOSTING PACKAGES WITH FREE DOMAIN NAME REGISTRATIONLINUX WEB HOSTING WITH PHP MYSQL TOMCAT SITE BUILDER FANTASTICO RVSKIN OSCOMMERCE AGORA CUBECART ZENCART PHPLIST PHP NUKE POSTNUKEECOMMERCE SHOPPING CART HOST MYSQL FRONTPAGE TOMCAT ZENCART HOSTINGCPANEL RESELLER HOSTING AND DEDICATED SERVER WEB HOSTING WITH JOOMLA MAMBO OSCOMMERCE PHPAUCTION AND SSH HOSTING |
This set of instructions will show you how to easily install mod_perl onto a cpanel server.
1) Create a new account, or choose an existing account where you will install mod_perl. I typically choose either the rvskin admin account or fantastico admin account. This tutorials will assume you install it in the rvadmin account.
2) SSH into the server, and go to:
cd /home/rvadmin/ directory
3) Get the mod_perl-1.29.tar.gz
wget http://perl.apache.org/dist/mod_perl-1.0-current.tar.gz
4) Unpack the file:
tar xzf mod_perl-1.29.tar.gz
5) Move to the mod_perl directoy:
cd mod_perl-1.29
6) Configure
perl Makefile.PL USE_APXS=1 WITH_APXS=/usr/local/apache/bin/apxs EVERYTHING=1
7) Run Make
make
8) Run Install
make install
9) Activate Mod Perl
/usr/local/apache/bin/apxs -a -n perl -i libperl.so
#########
Create the script below, and add it to the root directory of the mod_perl account holder (in this case rvadmin), and change the permissions (chmod +x add-mod-perl.sh), so to add mod_perl back into apache, you just need to run the script, and then verify that apache restarted with mod perl in it, you can check in WHM/News to see if mod_perl is listed .
#########
That last line is the one you’ll need to run if you re-compile Apache. The mod_perl binary is at
/home/rvadmin/mod_perl-1.29/apaci/libperl.so, so a simple way to do this would be to put the following lines in a file:
— cut here —
#!/bin/sh
libperl=/home/rvadmin/mod_perl-1.29/apaci/libperl.so
apxs=/usr/local/apache/bin/apxs
$apxs -a -n perl -i $libperl
/etc/init.d/httpd stop
/etc/init.d/httpd start
— cut here —
Name the file add-mod-perl.sh and execute “chmod +x add-mod-perl.sh”. Then, after compileing apache run the script (”./add-mod-perl.sh”) and it should all work.
PEAR Is short for ‘PHP Extension and Application Repository’
PEAR is having it’s primary goal to become a repository for PHP extensions and library code. The most important goal of the PEAR project is to try to define standard coding packages that can be used be developers directoly and it is re-usable coding.
Each package is a seperate project and is having a diffreent developer team.
Packages are in the gzipped tar files with a description file inside, and installed on your server using the PEAR installer.
You can install any pear package as
———–
pear install pear-package-name
———–
You can check all the PEAR packages that are available with
————
pear list-all
————
You can check installed PEAR packages on your server as
————
pear list
————
Hello,
To upgrade your perl on the Cpanel server you need to
go through the below steps.You need to perform all the steps
on the shell :
1. Firstly ,you need to download the latest perl installer tar file
from http://layer1.cpanel.net :
wget http://layer1.cpanel.net/perl587installer.tar.gz
tar -vzxf perl587installer.tar.gz
cd perl587installer
./install
2. Secondly ,after installation you need to run
upcp on the server.
/usr/local/cpanel/bin/checkperlmodules
/scripts/upcp –force
3. Thirdly,you should checkout the perl version after upgradation.
You can checkout the perl version through below command :
perl -v
Hello,
To upgrade your perl on the Cpanel web server you need to
go through the below steps.You need to perform all the steps
on the shell :
1. Firstly ,you need to download the latest perl installer tar file
from http://layer1.cpanel.net :
wget http://layer1.cpanel.net/perl587installer.tar.gz
tar -vzxf perl587installer.tar.gz
cd perl587installer
./install
2. Secondly ,after installation you need to run
upcp on the server.
/usr/local/cpanel/bin/checkperlmodules
/scripts/upcp –force
3. Thirdly,you should checkout the perl version after upgradation.
You can checkout the perl version through below command :
perl -v
1. Upload all CGI/Perl files in the ‘cgi-bin’ directory, which is in the ‘public_html’ directory.
2. Check Permissions for “cgi-bin” directory. (It should be 755)
3. Check Permissions for all the cgi/perl files. (It should be 755)
4. Make sure that files are uploaded in ASCII format. If uploaded through
File Manager then there is no such issue of upload file format.
5. Check the PERL interpreter path. It should be !#/usr/bin/perl
6. Check the path of sendmail (if used). It should be /usr/sbin/sendmail
For PHP issue :
1. If page is not getting loaded, make sure that the include path is correct in clients code or may be he is using fsockopen() function, which can cause problems.
2. If the issue is with PHP-MySQL, then you can confirm the database name, username and password that client is using in his configuration file. You can confirm that info with the SQL database section in Control Panel.
For some reasons I cannot execute and run my CGI/Perl script. Why do I get a 500 Error Page?
Follow the following steps:
1. Make sure the Perl path is set to /usr/bin/Perl
2. Make sure the .cgi/.pl file was uploaded to cgi-bin folder
3. Make sure the .cgi/.pl file was uploaded in ASCII mode.
4. Make sure to CHMOD the script to 755.
If this does not works contact your web hosting company 24×7 technical support.
I edit my CGI script, and then it no longer functions. Why?
Perl CGI scripts must be uploaded to your account via FTP as ASCII files to run properly. Also, all CGI hosting scripts must be executable. This requires setting the permissions on the file using your FTP hosting program and making sure the script is world executable (CHMOD).
If you are getting an “Internal Server Error” and you have verified the CGI script was uploaded as an ASCII file and it is executable, there may be a syntax error in the code. The easiest way to determine this is to telnet into your web site hosting account, go to the directory that contains the script (cd www/directory), and run the program from the prompt by typing in the name of the script. This will show the error in the program.
Why is it that my CGI script will not write to a file on the dedicated server?
All CGI scripts that are called from the web do not run with your account’s permission by default. This is for security reasons. The CGI scripts run as the user ‘nobody’, which is a fake username with no permissions. Because of this, any file or directory that you want a script to write to must be world writeable (CHMOD 777). This includes files such as .rdb, .dat, .txt etc.
Micfo International LLC Leading the hosting Industry with Cheap and Affordable Linux Web Hosting Packages.
Micfo, delivering the best cpanel web hosting with maximum reliability
is our exclusive focus.
— Micfo
International LLC
37 queries. 0.125 seconds