There are two different ways to install PHP4
on a Virtual Private Servers. The best way is to install the mod_php4
Apache Module. It can also be installed as a CGI to which
PHP4 files are redirected by your Virtual Private Servers web server.
Connect to your Virtual Private Servers via Telnet
or SSH and do the following.
Install the PHP4 CGI by doing the following, according to
your Virtual Private Servers O/S:
Run the following command, substituting a version of PHP4
% vinstall PHP4_VERSION
These versions of PHP4 are available:
php4 php4-mysql php4-pgsql php4-msql
Due to Security
Issues the PHP4 CGI is installed at ~/usr/local/bin/php.
Do the following to link the PHP4 CGI into your ~/www/cgi-bin
% cd ~/www/cgi-bin
% ln ../../../bin/php php
Make the following additions and modifications to your Virtual
Private Servers web server configuration file (~/www/conf/httpd.conf).
line so that PHP4 files will be included as directory indices.
index.php index.php4 index.php3 index.cgi index.html index.htm
Add the following lines so that all files with .php,
.php3, .php4, and .phtml extensions
will be redirected to the PHP4 CGI executable.
Action php4-script /cgi-bin/php
AddHandler php4-script .php .php3 .php4 .phtml
To test your PHP installation, try creating the following
~/www/htdocs/test.php4 document and viewing it in your
function reports the version number, as well as the features
that are compiled into PHP.
Toll Free 1-866-GSP-4400 • 1-301-464-9363 • email@example.com
Copyright © 1994-2016 GSP Services, Inc.