PHP/FI Support

PHP
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:

CGI Redirect Installation
Connect to your Virtual Server via Telnet or SSH and do the following:

  1. Change to your home directory:

    % cd

  2. Install the PHP3 software. Use ONE of the commands below, depending upon your Virtual Server O/S and the feature support you want:

    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
    

  3. Add the following lines to the ~/www/conf/httpd.conf file so that all files with .php3 extensions will be redirected to the PHP3 CGI executable:

    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.