I'm running into a minor issue, easily patched, installing PHP 4.3.3+ on Apache 1.3.
PROBLEM
Creating a php RPM script linked against apache 1.3 fails during install with an error:
apxs: Error: Config file /var/tmp/php-root/etc/httpd/conf/httpd.conf not found
make: *** [install-sapi] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.30157
SOLUTION In php/sapi/apache/config.m4 replace the line: APXS_SYSCONFDIR='$(INSTALL_ROOT)' `APXS -q SYSCONFDIR` with APXS_SYSCONFDIR=`APXS -q SYSCONFDIR`
EXPLANATION:
When php installs mod_php, it executes apxs with a reference to SYSCONFDIR (i.e. "apxs -S SYSCONFDIR='/etc/httpd/conf'). If the above solution isn't applied and your packager script does something like:
make install INSTALL_ROOT=/some/temp/dir
then as it stands, apxs will now look for a file that doesn't exist (/some/temp/dir/etc/httpd/conf/httpd.conf) and crap out.
Take care,
terry -- terry chay <mailto:[EMAIL PROTECTED]> <http://homepage.mac.com/tychay/>
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php