Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5445 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85907 invoked by uid 1010); 13 Nov 2003 18:59:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 85799 invoked from network); 13 Nov 2003 18:59:27 -0000 Received: from unknown (HELO postfix.spinodal.com) (206.40.55.227) by pb1.pair.com with SMTP; 13 Nov 2003 18:59:27 -0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by postfix.spinodal.com (Postfix) with ESMTP id 189B0BCFA7 for ; Thu, 13 Nov 2003 10:59:26 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v606) Content-Transfer-Encoding: 7bit Message-ID: <7FE65F30-160B-11D8-93AA-00039398D64A@php.net> Content-Type: text/plain; charset=US-ASCII; format=flowed To: PHP-DEV List Date: Thu, 13 Nov 2003 10:59:25 -0800 X-Mailer: Apple Mail (2.606) Subject: minor install issue (apache 1 sapi) From: tychay@php.net (terry chay) 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