|
Last Updated: August 11, 2000
Installing PHP4
There are two different ways to install PHP 4 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 or SSH and do the following.
FreeBSDPHP 4.0.0 % vinstall php4-dso
BSD/OSPHP 4.X.X unavailable
NOTE: If your Virtual Server was ordered after December 1, 1999, you are likely running FreeBSD. To find out which O/S your Virtual Server is running, use the uname command: % uname |
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/OSPHP 4.X.X unavailable
| NOTE: If your Virtual Server was configured before Dec 1, 1998 you will need to make the following additions and modifications in the ~/www/conf/srm.conf file instead. Then, Restart your 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.
FreeBSDPHP 4.0.0 % vinstall php4
BSD/OSPHP 4.X.X unavailable
NOTE: If your Virtual Server was ordered after December 1, 1999, you are likely running FreeBSD. To find out which O/S your Virtual Server is running, use the uname command: % uname |
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/OSPHP 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 1, 1998 you will need to make the following additions and modifications in the ~/www/conf/srm.conf file instead. Then, Restart your 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
Copyright © 1996-2000, Last Modified: 11 August 2000A Little Technology Shoppe, LLC (ALTS.NET)®. All rights reserved. All brand names and product names used on these web pages are trademarks, or trade names of their respective holders.