|
PHP
PHP is a
popular, freely available web applications development tool. The newest
version, called PHP3, includes an HTML-embedded scripting language and a
server-side preprocessor that interprets the HTML-embedded code in order to
create dynamically generated web pages. PHP3 includes support for various
databases, including mSQL, MySQL, and PostgreSQL, and is commonly used
for the development of database enabled web sites.
Installing PHP3
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:
FreeBSD LoadModule php3_module modules/mod_php3-3.0.12-module-imap-freetype-gd.so LoadModule php3_module modules/mod_php3-3.0.12-module-msql-imap-freetype-gd.so LoadModule php3_module modules/mod_php3-3.0.12-module-mysql-imap-freetype-gd.so LoadModule php3_module modules/mod_php3-3.0.12-module-pgsql-imap-freetype-gd.so
BSD/OS LoadModule php3_module modules/mod_php3-3.0.12-module.so LoadModule php3_module modules/mod_php3-3.0.12-module-gd.so LoadModule php3_module modules/mod_php3-3.0.12-module-imap-gd.so LoadModule php3_module modules/mod_php3-3.0.12-module-imap.so LoadModule php3_module modules/mod_php3-3.0.12-module-msql-gd.so LoadModule php3_module modules/mod_php3-3.0.12-module-msql-imap-gd.so LoadModule php3_module modules/mod_php3-3.0.12-module-msql-imap.so LoadModule php3_module modules/mod_php3-3.0.12-module-msql.so LoadModule php3_module modules/mod_php3-3.0.12-module-mysql-gd.so LoadModule php3_module modules/mod_php3-3.0.12-module-mysql-imap-gd.so LoadModule php3_module modules/mod_php3-3.0.12-module-mysql-imap.so LoadModule php3_module modules/mod_php3-3.0.12-module-mysql.so LoadModule php3_module modules/mod_php3-3.0.12-module-pgsql-gd.so LoadModule php3_module modules/mod_php3-3.0.12-module-pgsql-imap-gd.so LoadModule php3_module modules/mod_php3-3.0.12-module-pgsql-imap.so LoadModule php3_module modules/mod_php3-3.0.12-module-pgsql.so
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 |
AddType application/x-httpd-php3 .php3
NOTE: If
your Virtual Server was configured before Dec 8, 1998 you will need to make
this addition in the ~/www/conf/srm.conf file instead, and then restart
your web server: % restart_apache |
CGI Redirect Installation
Connect to your Virtual Server via Telnet or SSH and do the
following:
% cd
FreeBSD % vinstall php % vinstall php-msql % vinstall php-mysql % vinstall php-pgsql
BSD/OS % tar xvf /usr/local/contrib/php-3.0.12-redirect.tar % tar xvf /usr/local/contrib/php-3.0.12-redirect-gd.tar % tar xvf /usr/local/contrib/php-3.0.12-redirect-imap-gd.tar % tar xvf /usr/local/contrib/php-3.0.12-redirect-imap.tar % tar xvf /usr/local/contrib/php-3.0.12-redirect-msql-gd.tar % tar xvf /usr/local/contrib/php-3.0.12-redirect-msql-imap-gd.tar % tar xvf /usr/local/contrib/php-3.0.12-redirect-msql-imap.tar % tar xvf /usr/local/contrib/php-3.0.12-redirect-msql.tar % tar xvf /usr/local/contrib/php-3.0.12-redirect-mysql-gd.tar % tar xvf /usr/local/contrib/php-3.0.12-redirect-mysql-imap-gd.tar % tar xvf /usr/local/contrib/php-3.0.12-redirect-mysql-imap.tar % tar xvf /usr/local/contrib/php-3.0.12-redirect-mysql.tar % tar xvf /usr/local/contrib/php-3.0.12-redirect-pgsql-gd.tar % tar xvf /usr/local/contrib/php-3.0.12-redirect-pgsql-imap-gd.tar % tar xvf /usr/local/contrib/php-3.0.12-redirect-pgsql-imap.tar % tar xvf /usr/local/contrib/php-3.0.12-redirect-pgsql.tar
AddType application/x-httpd-php3 .php3 Action application/x-httpd-php3 /cgi-bin/php
NOTE: If
your Virtual Server was configured before Dec 8, 1998 you will need to make
these additions in the ~/www/conf/srm.conf file instead, and then
restart your web server: % restart_apache |
DOCUMENTATION:
Copyright © 1996-2000, Last Modified: 21 January 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.