
Installing PHP4 or PHP3 |
Installing PHP4
There are two different ways to install PHP4 on a Virtual
Server. The best way is to install it as a Dynamic Module.
It can also be installed as a CGI to which PHP4 files are
redirected by your Virtual Server web server.
| NOTE: PHP4 has a large list of known bugs. Please consult the PHP Bug Reporting list if you are finding strange behavior from your PHP4 modules. Some of the more apparent bugs involve multiple file uploads, url rewriting during session handling, and occasional zombies using backtick execution. If any of your existing PHP3 applications rely on some of these features, be sure to test them before making a full commitment to PHP4. |
Dynamic Module Installation
Connect to your Virtual Server via Telnet and do the
following.
FreeBSD PHP 4.0.0 % vinstall php4-dso
BSD/OS PHP 4.X.X unavailable
NOTE: If your
Virtual Server was ordered after Nov 22, 1999,
you are likely running FreeBSD. To find out which
O/S your Virtual Server is running, use the uname
command: % uname If your Virtual Server is not already running FreeBSD, Upgrade to a New FreeBSD Virtual Server today! |
The dynamic module PHP4 installation does not include a PHP configuration file (php.ini). Only the CGI installation (below) includes the configuration file.
MODULE-NAME.
LoadModule php4_module modules/MODULE-NAME
Currently, these PHP4 dynamic modules are available.
FreeBSD PHP 4.0.0 No database support mod_php4-4.0.0-module.so mod_php4-4.0.0-module-imap.so mod_php4-4.0.0-module-ftp-imap-freetype-gd.so mod_php4-4.0.0-module-mcrypt-freetype-gd.so mod_php4-4.0.0-module-mcrypt-ftp-imap-freetype-gd-xml.so mod_php4-4.0.0-module-mcrypt-ftp-imap.so mSQL database support mod_php4-4.0.0-module-msql.so mod_php4-4.0.0-module-msql-imap.so mod_php4-4.0.0-module-msql-ftp-imap-freetype-gd.so mod_php4-4.0.0-module-msql-mcrypt-freetype-.so mod_php4-4.0.0-module-msql-mcrypt-ftp-imap-freetype-gd-xml.so mod_php4-4.0.0-module-msql-mcrypt-ftp-imap.so MySQL database support mod_php4-4.0.0-module-mysql.so mod_php4-4.0.0-module-mysql-imap.so mod_php4-4.0.0-module-mysql-ftp-imap-freetype-gd.so mod_php4-4.0.0-module-mysql-mcrypt-freetype-gd.so mod_php4-4.0.0-module-mysql-mcrypt-ftp-imap-freetype-gd-xml.so mod_php4-4.0.0-module-mysql-mcrypt-ftp-imap.so PostgreSQL database support mod_php4-4.0.0-module-pgsql.so mod_php4-4.0.0-module-pgsql-imap.so mod_php4-4.0.0-module-pgsql-ftp-imap-freetype-gd.so mod_php4-4.0.0-module-pgsql-mcrypt-freetype-gd.so mod_php4-4.0.0-module-pgsql-mcrypt-ftp-imap-freetype-gd-xml.so mod_php4-4.0.0-module-pgsql-mcrypt-ftp-imap.so
BSD/OS PHP 4.X.X unavailable
| NOTE: If your Virtual Server was configured before Dec 8, 1998 you will need to make the following additions and modifications in the ~/www/conf/srm.conf file instead. Then, Restart Your Virtual Server Web Server. |
DirectoryIndex
line so that PHP4 files will be included as
directory indices. DirectoryIndex index.php index.php4 index.php3 index.cgi index.html index.htm
AddType application/x-httpd-php .php .php3 .php4 AddType application/x-httpd-php-source .phps
If you want to run PHP3 and PHP4 concurrently, add the following lines instead of those above.
AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php .php .php4 AddType application/x-httpd-php-source .phps
CGI Redirect Installation
Connect to your Virtual Server via Telnet or SSH and do
the following.
FreeBSD PHP 4.0.0 % vinstall php4
BSD/OS PHP 4.X.X unavailable
NOTE: If your
Virtual Server was ordered after Nov 22, 1999,
you are likely running FreeBSD. To find out which
O/S your Virtual Server is running, use the uname
command: % uname If your Virtual Server is not already running FreeBSD, Upgrade to a New FreeBSD Virtual Server today! |
We have made a number of PHP4 CGI builds available. To install a build with features that you want, use one of the following commands, instead of those above.
FreeBSD PHP 4.0.0 % vinstall php4 % vinstall php4-msql % vinstall php4-mysql % vinstall php4-pgsql
BSD/OS PHP 4.X.X unavailable
The PHP4 configuration file will be created at ~/usr/local/lib/php.ini instead of ~/usr/local/lib/php3.ini as it was with previous versions of PHP3.
% cd ~/www/cgi-bin % ln ../../../bin/php php
| NOTE: If your Virtual Server was configured before Dec 8, 1998 you will need to make the following additions and modifications in the ~/www/conf/srm.conf file instead. Then, Restart Your Virtual Server Web Server. |
DirectoryIndex
line so that PHP4 files will be included as
directory indices. DirectoryIndex index.php index.php4 index.php3 index.cgi index.html index.htm
Action php4-script /cgi-bin/php AddHandler php4-script .php .php3 .php4 .phtml
|
||||||