Hello Tom Cruickshank:
re: mysql -related install of apache and php4
-----

I'm running *BSD, not Linux, but very recently installed Apache with PHP,
from source. I usually make a shell script, and check it through for all the
steps, then run the script. I had saved the script, so maybe this will help.
You can do a configure --help to determine other parameters. NOTE --- if
this is an upgrade of apache, be sure to copy off your present httpd.conf. I
had saved mine to a directory which I've called here SAFEDIR.
Sincerely,
Robert Roberts
---------------------------------

#!/bin/sh

(
# PRE-CONFIGURE APACHE
cd /usr/src/apache_VERSION
./configure --prefix=/usr/local/apache_VERSION --enable-module=all

# BUILD PHP
cd /usr/src/php-4.VERSION
./configure --with-mysql --with-apache=/usr/src/apache_VERSION --enable-trac
k-vars --enable-ftp
rm -f main/php_config.h
mv new main/php_config.h
make
make install

# BUILD APACHE
cd /usr/src/apache_VERSION
./configure --prefix=/usr/local/apache_VERSION --enable-module=all --activat
e-module=src/modules/php4/libphp4.a
make
make install

# INSTALL PHP INIT SCRIPT
cd /usr/src/php-4.VERSION
cp php.ini-dist /usr/local/lib/php.ini

# REPLACE CONF FILES
mv /usr/local/apache_1.3.20/conf/httpd.conf
/usr/local/apache_VERSION/conf/httpd.conf.orig
cp /usr/local/SAFEDIR/httpd.conf /usr/local/apache_VERSION/conf/httpd.conf
) > /usr/src/build.log 2>&1 &


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to