Blue Reef Technical Support ResellersAbout Blue Reef Consulting, Inc.

EcommerceSearch
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
Development Suites for your Virtual Server.



Virtual Servers Home Page
Virtual Server Support
Virtual Server Addons
Web Site Development Suites
Web Site Development Suites Overview
Miva Overview
Configuring Miva for Subhosts
PHP 3 Overview
PHP4 OverviewPHP 4 Overview
Installing PHP 3Installing PHP 3
Installing PHPInstalling PHP 4
Request help using our Problem Tracking System
Order a Blue Reef Virtual Server now!


Installing PHP4

There are two different ways to install PHP4 on a Virtual Server. The best way is to install it as a Dynamic Module.

Which install is right for me?
Within each version of PHP, there are several "builds" to choose from. A build consists of PHP's core features--which are found in every build--and some optional additional features, such as database support, on-the-fly image creation, and encryption. You should choose the build that best suits your needs but at the same time does not add unnecessary overhead to your web server.

For example, if you plan on making use of PHP to transfer files between computers, or to use TWIG to access your email, you'll want to choose a PHP build that includes ftp, imap, and the database backend you're using for TWIG in the build name.
    mod_php3-3.0.16-module-msql-mcrypt-ftp-imap.so
If you want to use PHP chiefly to access a PostgreSQL database, but not build images on the fly, choose a PHP build with pgsql but without freetype and gd in the build name.
    mod_php3-3.0.16-module-pgsql.so
By selecting the PHP build carefully, you will maximize your virtual server's memory use as well as improve the performance of your Apache 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
We've provided more information here.

Installation PHP 4 with CGI Redirect
The other way to install PHP4, as a CGI to which PHP3 files are redirected by the web server, is shown below. Connect to your Virtual Server via Telnet or SSH and do the following:
  1. Change to your home directory:

      % cd

  2. Install the PHP4 software using the command below:

      % vinstall php4

      NOTE: We have made a number of PHP4 CGI builds available. To install a build with features that you want, use one of the following commands, instead of those above.

      % vinstall php4-msql
      % vinstall php4-mysql
      % vinstall php4-pgsql

    The PHP4 configuration file will be created at ~/usr/local/lib/php.ini instead of ~/usr/local/lib/php3.ini as it was with previous versions of PHP3.

  3. Due to Security Issues the PHP4 CGI is installed at ~/usr/local/bin/php. Do the following to link the PHP4 CGI into your ~/www/cgi-bin directory.

      % cd ~/www/cgi-bin
      % ln ../../../bin/php php

  4. 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 PHP4 CGI executable.

        Action php4-script /cgi-bin/php
        AddHandler php4-script .php .php3 .php4 .phtml
SEE ALSO:

About PHP4

Installing PHP 4 as a Dynamic Module

PHP 3

About mSQL

About mySQL

About PostgreSQL

About Miva

Configuring Miva for Subhosts

Database Solutions

CGI Scriptorium

Server Add-ons

BOOKS TO HELP YOU:

Building Database Applications on the Web Using PHP3
Building Database Applications on the Web Using PHP3

$27.97

PHP Pocket Reference
PHP Pocket Reference

$7.96

Php3: Programming Browser-Based Applications
Php3: Programming Browser-Based Applications
$27.99


Professional PHP Programming
Professional Php Programming

$39.99

PHP3 and MySQL Web Development
$39.99

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


Internet Magazines






[ SERVERS | ECOMMERCE | SUPPORT | SPECIALS | SEARCH | SITE MAP | ORDER]

[ HOME | CONTACT US | ABOUT US | PRIVACY | LEGAL | REFUND POLICY ]
© Copyright 1998 - 2001 Blue Reef Consulting, Inc. All Rights Reserved.
Comments or questions about this web site? Write to webmaster@bluereef.net. Phone: (305) 274-8393