php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27373 Apache vs 1.3.27 and 1.3.29 with PHP 4.3.4 and 4.2.2 - libphp4.so not created
Submitted: 2004-02-23 18:31 UTC Modified: 2004-02-25 19:23 UTC
From: mattm at mattm dot net Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.4 OS: Solaris 5.7 Sparc
Private report: No CVE-ID: None
 [2004-02-23 18:31 UTC] mattm at mattm dot net
Description:
------------
Apache vs 1.3.27 and 1.3.29 with PHP 4.3.4 and 4.2.2 

I'm almost bald now -- pulling out my hair for a week on this one.  I have gone through all the bug-reports and tried all sorts of combinations.  I am using the latest stable release from the website.


Preconfigure APACHE
# cd apache_1.3.27
# ./configure --prefix=/usr/local/apache

PHP
# cd php-4.3.3
# ./configure --with-apache=../apache_1.3.27
# make
# make install
# cp php.ini-dist /usr/local/lib/php.ini

APACHE Final Install
# cd apache_1.3.27
# ./configure --activate-module=src/modules/php4/libphp4.a \
  --enable-module=php4 \
  --prefix=/usr/local/apache \
# make
# make install

Error conditions now:
a) The /usr/local/apache/libexec folder is empty.  
b) The htpasswd tool core-dumps
c) httpd will not start when php4 is referenced in httpd.conf

Things tried:
a) configure, make, change libtool: build_libtool_libs=yes, make install -- the libphp4.so.0 is not in .libs as the workarounds indicate
b) varios combinations of Apache and PHP as listed above.







Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-24 04:47 UTC] sniper@php.net
What exactly do you have in httpd.conf ? 
And I don't think you need --enable-module=php4 in the last phase for Apache..

 [2004-02-25 17:25 UTC] mattm at mattm dot net
Thanks for the speedy reply --

I started with a very basic httpd.conf file, as this server is to have only two directories (Nagios install w/ php).

I have wound up blowing away apache completely, and just trying to get it to work with the newly compiled Apache/PHP combo.  Note that Apache compiles and works without PHP.  As soon as I add it in I get probs.

Just no I tried the same steps, omiting the --active-module=php4 line.  Same results.

The /usr/local/apache/libexec directory is empty
The PHP entries for LoadModule / ClearModule were not added to httpd.conf
 [2004-02-25 19:23 UTC] sniper@php.net
If you follow the instructions in the INSTALL file for static build (and EXACTLY like it said there! Use _fresh_ apache sources!) it will work. 

Please ask further support questions elsewhere, there is no bug here. (libphp4.so is created ONLY when you use --with-apxs and have DSO enabled Apache)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 02 11:01:32 2024 UTC