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.
Notes:
See http://officeupdate.microsoft.com/frontpage/wpp/serk/ 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 jason@familynet.net
It is recommend that you backup and remove or rename your current /usr/local/apache path if you have one.
| http://www.apache.org/dist/httpd/ | Apache Web Server 1.3.26 |
| ftp://ftp.rtr.com/pub/fp-patch-apache_1.3.22.Z | Apache 1.3.22 Patch for FrontPage 2002 Server Extensions v5 (works with 1.3.26) |
| http://www.rtr.com/fpsupport/download.htm | FrontPage 2002 Server Extensions v5 |
| http://www.php.net | PHP 4.2.1 |
| http://www.mysql.com/downloads/mysql-3.23.html | 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 \
--enable-module=usertrackmake
make install
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
DocumentRoot.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 .phpNOTE: 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/srctar xzvf mysql-3.23.51.tar.gz
cd mysql-3.23.51
./configure
make
make install
/usr/local/bin/mysql_install_db
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 currentversioncd currentversion
./fp_install.sh
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 fp_install.sh script.
Install and build PHP4
cd /usr/srctar 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
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 \
--add-module=mod_frontpage.c
make
make install
cd /usr/local/apache/bin
apachectl startTest your configuration by using FrontPage to open an existing web on this machine.
If it works, tell me. :-)
http://www.dedserius.com/apache-fp/
http://www.dedserius.com/apache-fp/index.php3
http://www.faure.de/Apache+SSL+PHP+fp-howto-1p.html
http://howto.tucows.com/LDP/HOWTO/mini/Apache+SSL+PHP+fp-2.html