Install mysql, php4 and apache so they "play nice"

by Mark Schonbach (marks AT markbach PERIOD C0M) version 1.0.4, Last Update 9/20/00

get, untar mysql in /usr/local

    ln -s mysql-version mysql
    ./configure
    make
    make install
    scripts/mysql_install_db
    /usr/local/mysql/bin/safe_mysqld &

get, untar php4, and apache in /usr/local

    ln -s apache_version apache
    ln -s php-version php
    cd apache
    ./configure --prefix=/usr/local/apache
    cd ../php
    ./configure --with-mysql --with-apache=../apache --enable-track-vars
    make
    make install
    cd ../apache
    ./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a
    make
    make install
    cd ../php
    cp php.ini-dist /usr/local/lib/php4.ini
    cp php.ini-dist /usr/local/lib/php.ini

in httpd.conf:

    DocumentIndex index.pl index.cgi index.php4 index.php index.shtml index.html index.htm
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php
tux