



 
 
 
 
 
 
 
 
 
 
|
Installing PHP3 as a Dynamic Module
There
are two different ways to install PHP3 v3.0.12 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 PHP3 files are redirected by the web server.
Dynamic Module Installation
Connect to your Virtual Server via Telnet
or SSH and do the following:
- Install the PHP3 dynamic module on your Virtual Server. Substitute
the name of the dynamic module you want to install for MODULE-NAME below.
% cd /usr/local/apache/1.3/modules
% ln MODULE-NAME ~/www/modules/MODULE-NAME
Currently, these PHP3 dynamic modules are available:
No database support
mod_php3-3.0.16-module.so
mod_php3-3.0.16-module-imap.so
mod_php3-3.0.16-module-ftp-imap-freetype-gd.so
mod_php3-3.0.16-module-mcrypt-freetype-gd.so
mod_php3-3.0.16-module-mcrypt-ftp-imap-freetype-gd.so
mod_php3-3.0.16-module-mcrypt-ftp-imap.so
mSQL database support
mod_php3-3.0.16-module-msql.so
mod_php3-3.0.16-module-msql-imap.so
mod_php3-3.0.16-module-msql-ftp-imap-freetype-gd.so
mod_php3-3.0.16-module-msql-mcrypt-freetype-.so
mod_php3-3.0.16-module-msql-mcrypt-ftp-imap-freetype-gd.so
mod_php3-3.0.16-module-msql-mcrypt-ftp-imap.so
MySQL database support
mod_php3-3.0.16-module-mysql.so
mod_php3-3.0.16-module-mysql-imap.so
mod_php3-3.0.16-module-mysql-ftp-imap-freetype-gd.so
mod_php3-3.0.16-module-mysql-mcrypt-freetype-gd.so
mod_php3-3.0.16-module-mysql-mcrypt-ftp-imap-freetype-gd.so
mod_php3-3.0.16-module-mysql-mcrypt-ftp-imap.so
PostgreSQL database support
mod_php3-3.0.16-module-pgsql.so
mod_php3-3.0.16-module-pgsql-imap.so
mod_php3-3.0.16-module-pgsql-ftp-imap-freetype-gd.so
mod_php3-3.0.16-module-pgsql-mcrypt-freetype-gd.so
mod_php3-3.0.16-module-pgsql-mcrypt-ftp-imap-freetype-gd.so
mod_php3-3.0.16-module-pgsql-mcrypt-ftp-imap.so
- Add the following line to the top of your Virtual Server web server
configuration file (~/www/conf/httpd.conf)
to dynamically load the PHP3 dynamic module. Substitute the name of
the dynamic module you want to install for MODULE-NAME.
LoadModule
php3_module modules/MODULE-NAME
- Make the following additions and modifications to your Virtual Server
web server configuration file (~/www/conf/httpd.conf).
- Modify the DirectoryIndex
line so that index.php3 files will be included as directory indices
DirectoryIndex index.php3 index.cgi index.html index.htm
- Add the following lines so that all files with .php3
and .phtml extensions
will be redirected to the PHP3 dynamic module.
AddType application/x-httpd-php3
.php3
AddType application/x-httpd-php3 .phtml
|
|