On 29/01/2003 3:11 PM +1100 dan wrote:

Reading through the PHP install instructions (from www.php.net) it seems
there are a number of steps which involve re-installing Apache.  I already
have the Apache webserver installed and operational so I am unsure whether
or not I actually need to do this.  Here are some of the steps the install
instructions give:
You only need to re-compile Apache if you want PHP4 built into the Apache binary. Otherwise, if Apache was built with DSO support (httpd -l should list "mod_so.c" if this is the case) then you can just compile PHP as a module.

1. gunzip apache_1.3.14.tar.gz
2.  tar xvf apache_1.3.14.tar
3. gunzip php-4.0.3pl1.tar.gz
4.  tar xvf php-4.0.3pl1.tar
5.  cd apache_1.3.14
6.  ./configure --prefix=/usr/local/apache
7.  cd ../php-4.0.3pl1
8.  ./configure --with-mysql --with-apache=../apache_1.3.14 \
--enable-track-vars

Change the above to read: ./configure --with-mysql --with-apxs=/path/to/apxs --enable-track-vars

APXS is the "APache eXtenSion tool". It's used to install Apache modules.

9.  make
10. make install
11. cp libs/libphp4.a ../apache_1.3.14/src/modules/php4/
You won't have to do 11 if you are installing PHP as a module.

12. cd ../apache_1.3.14
13. ./configure --activate-module=src/modules/php4/libphp4.a
Again, this is only a step if you want PHP compiled into Apache.

14. make
15. make install

Does the above instructions apply to someone who is installing Apache and
PHP? - I only want to install PHP so I can see why I would need to need to
uncompress the apache_xxxx.tar distro?
You don't need to touch the apache source if you already have Apache installed. If you are using Apache as it came with SuSE, it should be compiled with DSO (mod_so) support so just follow the "QUICK INSTALL (DSO)" instructions in the INSTALL file from the PHP distribution.

HTH,
Gonzalo.
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to