HOWTO Install:
Apache 1.3.26 with FrontPage 2002 Server Extensions and PHP 4 + MySQL Support on a RedHat Linux 7.3 Server

This HOW-TO will describe how you can compile and install Apache 1.3.26 with FrontPage 2002 Extensions and the server-side scripting language PHP4 (with MySQL support).  It assumes there is NO current web server or configuration you wish to save. 


See for more information about the FrontPage Server Extensions.

Disclaimer: If this blows up your web server or otherwise crashes your system or life, don't blame me. I just created this page so I wouldn't have to remember how I solved the solution. No guarantees.  However, please report any problems or suggestions to

It is recommend that you backup and remove or rename your current /usr/local/apache path if you have one.

Download the following files: Apache Web Server 1.3.26 Apache 1.3.22 Patch for FrontPage 2002 Server Extensions v5 (works with 1.3.26) FrontPage 2002 Server Extensions v5 PHP 4.2.1 MySQL 3.23.51

I will assume that these are all placed in the /usr/src directory.

Build First version of Apache:

cd /usr/src
tar xzvf /path to Apache/apache_1.3.26.tar.gz
cd apache_1.3.26
./configure --enable-module=expires \
--enable-module=headers \
--enable-module=log_agent \
--enable-module=log_referer \


make install

Edit the /usr/local/apache/conf/httpd.conf file:

If you have trouble accessing your web via FrontPage, you probably messed up this part.

Change the DocumentRoot directive to where you want to put your web files.
Be sure to update the appropriate <Directory ...> directive to be the same as your

VERY IMPORTANT: Make sure the above <Directory ...> has the following:
AllowOverride All
This enables the FrontPage Server to to control the web via the .htaccess files. Also be sure to include the AllowOverride All directive in any user or virtual web.

[PHP4 note] In order for you to view/run PHP pages, you must add the following line (there should be an existing AddType directive in the httpd.conf file, just add this below that line):
AddType application/x-httpd-php .php

NOTE: If you fail to add the AddType line, your PHP code will appear in non-executed form on the client browser.  All passwords and code will be visible!  It is important you test it by building a test.php page with following code (this is also a good test):
    <? phpinfo(): ?>

Build MySQL:

cd /usr/src

tar xzvf mysql-3.23.51.tar.gz 

cd mysql-3.23.51



make install


NOTE: If you want the database to reside on the same server as the apache web server,  you will eventually need to start mysqld (probably from the /etc/rc.d directory).  It is a good idea to understand more about MySQL security and installation from the included README and INSTALL files.

Install the Frontpage 2002 Server Extensions:

cd /usr/local
tar xzvf /usr/src/fp50.linux.tar.gz
cd frontpage
ln -s version5.0 currentversion

cd currentversion


NOTE: This will attempt to extract the fp50.linux.tar.gz file again.  You can tell it not to replace and it will continue with the process.  Follow the prompts and answer them accordingly.  The apache server config file is located in /usr/local/apache/conf/httpd.conf
YOU MUST MAKE SURE You changed the "AllowOverride None" to "AllowOverride All" before running the script.

Install and build PHP4

cd /usr/src

tar xzvf php-4.2.1.tar.gz

cd php-4.2.1

./configure --with-apache=/usr/src/apache_1.3.26 --with-mysql=/usr/local 


make install

Build Apache with PHP4 and Frontpage Extensions Patch

cd /usr/src/apache_1.3.26
patch -p0 < fp-patch-apache_1.3.22 
cp mod_frontpage.c src/modules/extra/ 

./configure --enable-module=expires \
--enable-module=headers \
--enable-module=log_agent \
--enable-module=log_referer \
--enable-module=usertrack \
--activate-module=src/modules/php4/libphp4.a \


make install

Start the server!

cd /usr/local/apache/bin
apachectl start

Test your configuration by using FrontPage to open an existing web on this machine.

If it works, tell me. :-)


See Also:


contact AJA Computers for McMart advertising,or AJA
WebHosting and Web developement