Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5455 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3223 invoked by uid 1010); 14 Nov 2003 00:20:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3195 invoked from network); 14 Nov 2003 00:20:40 -0000 Received: from unknown (HELO smtp2.pp.htv.fi) (213.243.153.14) by pb1.pair.com with SMTP; 14 Nov 2003 00:20:40 -0000 Received: from posti.pp.htv.fi (posti.pp.htv.fi [212.90.64.50]) by smtp2.pp.htv.fi (Postfix) with ESMTP id 4391B297C6C; Fri, 14 Nov 2003 02:20:40 +0200 (EET) Received: from [192.168.0.101] (cs181008.pp.htv.fi [213.243.181.8]) by posti.pp.htv.fi (8.11.1 (Revision 1.5+JAGae91741+JAGae92668) /8.11.1) with ESMTP id hAE0KdS13700; Fri, 14 Nov 2003 02:20:39 +0200 (EET) Date: Fri, 14 Nov 2003 02:20:38 +0200 (EET) Reply-To: Jani Taskinen To: terry chay Cc: PHP-DEV List In-Reply-To: <7FE65F30-160B-11D8-93AA-00039398D64A@php.net> Message-ID: References: <7FE65F30-160B-11D8-93AA-00039398D64A@php.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] minor install issue (apache 1 sapi) From: sniper@iki.fi (Jani Taskinen) This happens while _creating_ the rpm? In that case, I wouldn't call it a bug..you shouldn't be creating the package against your installed apache, but the one you're gonna package too. Diclaimer: this is purely 'common sense' guess as I have never done any rpms of php myself. --Jani On Thu, 13 Nov 2003, terry chay wrote: > 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 > >