Blue Reef Technical Support Blue Reef Virtual Server Reseller ProgramInstallation instructions, manuals, how-tos, and more!About Blue Reef Consulting, Inc.

About Blue Reef Virtual ServersEcommerce Solutions for your Virtual ServerSearch the Blue Reef Virtual Server web site
Return to Blue Reef Virtual Servers Home Page
Order virtual servers, software, computers, and more!
Return to Blue Reef Main Home Page
Site Map
Support Solutions to help you do business with your Virtual Server.

Blue Reef Virtual Servers
Support Menu
Advanced Support Topics
Advanced Topics Overview
Dynamic ModulesDynamic Modules
Installing Apache ModulesInstalling  Apache Modules
Installing Perl ModulesInstalling Perl Modules
Installing Java ModulesInstalling Java Modules
Installing PHP 3 Dynamic Module
Installing PHP ModulesInstalling PHP 4 Dynamic Modules
Request help using our Problem Tracking System
Order a Blue Reef Virtual Server now!

Installing PHP 4 as a
Dynamic Module

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 PHP files are redirected by the 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:
  1. Install the PHP 4 dynamic modules on your Virtual Server.

      % vinstall php4-dso

    The dynamic module PHP4 installation does not include a PHP configuration file (php.ini). Only the CGI installation (below) includes the configuration file.

  2. Add the following line to the top of your Virtual Server web server configuration file (~/www/conf/httpd.conf) to dynamically load the PHP 4 dynamic module. Substitute the name of the dynamic module you want to install for MODULE-NAME.

      LoadModule php4_module modules/MODULE-NAME

    Currently, these PHP4 dynamic modules are available:
    No database support
    mSQL database support
    MySQL database support
    PostgreSQL database support
  3. Make the following additions and modifications to your Virtual Server web server configuration file (~/www/conf/httpd.conf).

    1. Modify the DirectoryIndex line so that PHP 4 files will be included as directory indices.
       DirectoryIndex index.php index.php4 index.php3 index.cgi index.html index.htm
    2. Add the following lines so that all files with .php, .php3, .php4, and .phtml extensions will be redirected to the PHP 4 dynamic module.

        AddType application/x-httpd-php .php .php3 .php4
        AddType application/x-httpd-php-source .phps

      If you want to run PHP 3 and PHP 4 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


About PHP 4

Installing PHP 4 as a CGI


About the Apache Web Server

About Apache Dynamic Modules

Installing Apache Modules

Installing mod_perl

Installing mod_jserv

Add-on Help

Recommended Web Server Books


Writing Apache Modules with
Perl and C


Apache: Web Server Directives Guidebook

$15.95 logo
Search for :
Enter keywords...

Internet Magazines