minor install issue (apache 1 sapi)
| From: | terry chay | Date: | Thu, 13 Nov 2003 18:59:25 +0000 |
| Subject: | minor install issue (apache 1 sapi) | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-5445@lists.php.net to get a copy of this message | ||
I'm not too sure this belongs here or on PHP-INST (there was a message by Dinesh Anchan back in July 17 on PHP-INST where the replier wasn't helpful to the poor guy). In any case...
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:tychay@php.net> <http://homepage.mac.com/tychay/>