php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #12412 Installation on Apache Server
Submitted: 2001-07-26 18:15 UTC Modified: 2001-07-26 18:30 UTC
From: jpharrison at newedgenetworks dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.6 OS: all
Private report: No CVE-ID: None
 [2001-07-26 18:15 UTC] jpharrison at newedgenetworks dot 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



 
 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-26 18:30 UTC] rasmus@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 17:01:30 2024 UTC