php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5683 problem with starting the apache server running php3/4 together
Submitted: 2000-07-19 21:22 UTC Modified: 2000-08-17 16:46 UTC
From: hans at linux dot gelrevision dot nl Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.1pl2 OS: Linux Red Hat 6.0, Apache 1.3.12
Private report: No CVE-ID: None
 [2000-07-19 21:22 UTC] hans at linux dot gelrevision dot nl
Hi all,

Weird problem. Have compiled apache with DSO and both PHP3/4 with the following options:

 $ ./configure \
	--with-apxs=/usr/local/apache/bin/apxs \
	--enable-versioning \
	--with-mysql \
	--enable-track-vars
	
for php 4 I have an additional option
	--enable-trans-id

When installing these modules like it should apache won't show localhost. Whenever I run the following script I build to make a workaround it works great (tested with <?phpinfo();?> it shows the different configs):

#apachefix to run both php3 & php4
cp /usr/local/apache/conf/srm.conf.default /usr/local/apache/conf/srm.conf
cp /usr/local/apache/conf/httpd.conf.default /usr/local/apache/conf/httpd.conf

/usr/local/apache/bin/apachectl start

cp /usr/local/apache/conf/httpd.conf.php /usr/local/apache/conf/httpd.conf
cp /usr/local/apache/conf/srm.conf.php /usr/local/apache/conf/srm.conf
/usr/local/apache/bin/apachectl restart

Anyone got an idea on how to fix this without using this workaround?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-17 16:46 UTC] sniper@php.net
You must specify the path in php4 to the mysql client library location.
For example (mysql installed with --prefix=/usr/local/mysql):

./configure \
 --with-apxs=/usr/local/apache/bin/apxs \
 --enable-versioning \
 --with-mysql=/usr/local/mysql
 --enable-track-vars

Re-open if problem persists.

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 18:00:01 2026 UTC