Bug #12412 Updated: Installation on Apache Server
| From: | rasmus@php.net | Date: | Thu, 26 Jul 2001 22:30:07 +0000 |
| Subject: | Bug #12412 Updated: Installation on Apache Server | ||
| References: | 1 | Groups: | php.dev php.doc |
| Request: | Send a blank email to php-dev+get-61126@lists.php.net to get a copy of this message | ||
ID: 12412
Updated by: rasmus
Reported By: jpharrison@newedgenetworks.com
Old Status: Open
Status: Closed
Bug Type: Documentation problem
Operating System: all
PHP Version: 4.0.6
New Comment:
I am not sure what you are talking about. There is no libs directory and it is definitely
--activate-module you need to use when you use PHP's --with-apache flag.
Just to make sure I wasn't wrong I grabbed the latest Apache tarball (1.3.20) and tried it.
You configure PHP using --with-apache=/some/path/apache_1.3.20
make
make install
Then in the Apache dir you do:
[root@rasmus apache_1.3.20]# ./configure --activate-module=src/modules/php4/libphp4.a
Configuring for Apache, Version 1.3.20
+ using installation path layout: Apache (config.layout)
+ activated php4 module (modules/php4/libphp4.a)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
+ configured for Linux platform
+ setting C compiler to gcc
+ setting C pre-processor to gcc -E
+ checking for system header files
+ adding selected modules
o php4_module uses ConfigStart/End
+ checking sizeof various data types
+ doing sanity check on compiler and options
Creating Makefile in src/support
Creating Makefile in src/os/unix
Creating Makefile in src/ap
Creating Makefile in src/main
Creating Makefile in src/lib/expat-lite
Creating Makefile in src/modules/standard
Creating Makefile in src/modules/php4
Works perfectly and is exactly as documented.
Previous Comments:
------------------------------------------------------------------------
[2001-07-26 18:15:13] jpharrison@newedgenetworks.com
Here's what the docs say:
---------------------------------
Details of installing PHP with Apache on Unix.
You can select arguments to add to the configure on line 8 below from the Complete list of configure
options.
Example 2-5. Installation Instructions (Apache Module Version)
1. gunzip apache_1.3.x.tar.gz
2. tar xvf apache_1.3.x.tar
3. gunzip php-x.x.x.tar.gz
4. tar xvf php-x.x.x.tar
5. cd apache_1.3.x
6. ./configure --prefix=/www
7. cd ../php-x.x.x
8. ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
9. make
10. make install
11. cd ../apache_1.3.x
12. for PHP 3: ./configure --activate-module=src/modules/php3/libphp3.a
for PHP 4: ./configure --activate-module=src/modules/php4/libphp4.a
13. make
14. make install
---------------------------
But in fact the Apache configuration requires (to add
a module) "enable-module" (not "activate-module").
Also, the PHP module "libphp4.a" is found one directory
below (in "libs"), not where it's shown.
Minor, but significant......JP Harrison
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12412&edit=1