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
Specials
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 Perl ModulesInstalling Perl Modules
Installing Java ModulesInstalling Java Modules
Install mod_jk Apache moduleInstall mod_jk Apache module
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 Redirect to which PHP files are redirected by the web server.
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
  2. The installation should automatically 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. Check to see that it is there.

      LoadModule php4_module modules/mod_php4-4.3.0.so
  3. Check to see that the following additions and modifications have been made to your web server configuration file (~/www/conf/httpd.conf) If they are not there, you will need to add it yourself.

    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 .phtml
        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

  4. Restart your web server:

    % restart_apache

  5. To test your PHP installation, try creating the following ~/www/htdocs/test.php4 document and viewing it in your web browser.

    <HTML>
    <BODY>
    <?php
    phpinfo();
    ?>
    </BODY>
    </HTML>

SEE ALSO:

Installing PHP 4 as a CGI Redirect

PHP3

About the Apache Web Server

About Apache Dynamic Modules

Add-on Help


Recommended Web Server Books
 

BOOKS TO HELP YOU:


Writing Apache Modules with
Perl and C

$31.96


Apache: Web Server Directives Guidebook

$15.95


Amazon.com logo
Search for :
Enter keywords...