Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Contact Us
Online Help
Domain Status
Man Pages

Virtual Servers

Topology Map

Server Agreement
Year 2038

USA Flag



Apache Modules: PHP3

bullet Introduction
There are several different ways to install PHP3 on a Virtual Private Servers. The best way is to install the mod_php3 Apache Module. Another less desirable method is to install The PHP3 CGI to which PHP3 files are redirected by your Virtual Private Servers web server.

NOTE: The latest version of PHP is PHP4.


bullet Installation
Connect to your Virtual Private Servers via Telnet or SSH and do the following.
  1. Install the PHP3 Apache modules. Follow the directions that correspond to your Virtual Private Servers O/S.

    NOTE: PHP no longer creates GIF images via lib-gd. Due to patent restrictions on the GIF compression algorithm we can no longer support it. The PNG Image Format has support for alpha channels, gamma correction, has better compression than GIF compression and supports 48-bit color depth (versus 8-bit color GIF images), and is now widely supported by nearly all modern web browsers.

    • FreeBSD PHP 3.0.18
      Substitute the file name of the Apache module you want to install for FILE-NAME below.

      % cd /usr/local/apache/1.3/modules
      % ln FILE-NAME ~/www/modules/FILE-NAME

      These PHP3 modules are available.

No database support

mSQL database support

MySQL database support

PostgreSQL database support
  1. Add the following line to the top of your Virtual Private Servers web server configuration file (~/www/conf/httpd.conf) to dynamically load the PHP3 Apache module. Substitute the file name of the Apache module you want to install for FILE-NAME.

    LoadModule  php3_module  modules/FILE-NAME

  2. Make the following additions and modifications to your Virtual Private Servers web server configuration file (~/www/conf/httpd.conf).

    1. Modify the DirectoryIndex line so that index.php3 files will be included as directory indices.

      DirectoryIndex index.php3 index.cgi index.html index.htm
    2. Add the following lines so that all files with .php3 and .phtml extensions will be redirected to the PHP3 Apache module.

      AddType application/x-httpd-php3 .php3
      AddType application/x-httpd-php3 .phtml

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


    The phpinfo() function reports the version number, as well as the features that are compiled into PHP

Toll Free 1-866-GSP-4400 • 1-301-464-9363 •
Copyright © 1994-2016 GSP Services, Inc.