Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58130 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55603 invoked from network); 27 Feb 2012 13:27:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2012 13:27:45 -0000 Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.42 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 74.125.83.42 mail-ee0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:58291] helo=mail-ee0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1C/E4-40985-FC48B4F4 for ; Mon, 27 Feb 2012 08:27:44 -0500 Received: by eekb57 with SMTP id b57so1149197eek.29 for ; Mon, 27 Feb 2012 05:27:41 -0800 (PST) Received-SPF: pass (google.com: domain of julienpauli@gmail.com designates 10.14.99.2 as permitted sender) client-ip=10.14.99.2; Authentication-Results: mr.google.com; spf=pass (google.com: domain of julienpauli@gmail.com designates 10.14.99.2 as permitted sender) smtp.mail=julienpauli@gmail.com; dkim=pass header.i=julienpauli@gmail.com Received: from mr.google.com ([10.14.99.2]) by 10.14.99.2 with SMTP id w2mr8230949eef.69.1330349261597 (num_hops = 1); Mon, 27 Feb 2012 05:27:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=1etkRrpXIeyF0y4KUOr6+3XVjoOh2E83w+/jTKkQjrM=; b=Wvr2ACL7x2gJt/OdkTlMD7jtZRVZFpnHT/iDYRj54AHj2WNveZ5VwZkoA0NxrHeVmo dJQn991V3090W1wE8BkHpEUz6+2JaaTloVIWLesei0j8EnYXNfkMkxRSdfHDp53riyDk O31pBm+gYYRKn00E8CjGx2fiWIH41BSCoK+9c= Received: by 10.14.99.2 with SMTP id w2mr6201106eef.69.1330349261263; Mon, 27 Feb 2012 05:27:41 -0800 (PST) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.213.29.2 with HTTP; Mon, 27 Feb 2012 05:27:01 -0800 (PST) In-Reply-To: References: <4F481E93.1090400@oracle.com> <4F482524.6060106@oracle.com> <4F482E58.9020802@oracle.com> Date: Mon, 27 Feb 2012 14:27:01 +0100 X-Google-Sender-Auth: 3EvPj-yVKO5OkQHM7g362NH40YA Message-ID: To: Kris Craig Cc: Christopher Jones , internals@lists.php.net Content-Type: multipart/alternative; boundary=bcaec52be4932512b704b9f21390 Subject: Re: [PHP-DEV] [RFC] APXS LoadModule Option in configure From: jpauli@php.net (jpauli) --bcaec52be4932512b704b9f21390 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Feb 27, 2012 at 2:27 AM, Kris Craig wrote: > Ok, I've updated the RFC based on input received here. I also made a > decision on the APXS vs. APXS2 question; please refer to the RFC for > details. If anybody has any objections to this decision, now would be the > time to say something! > > I've targetted this for 5.4.1 so this won't have any bearing on the > upcoming 5.4.0 release. If I don't hear any new objections, I plan to > initiate the vote sometime early this week. > > > https://wiki.php.net/rfc/apxs-loadmodule > > --Kris > > Heh, I like the idea the RFC is about. Having one or several configuration files is just a matter of taste and should be decided by distros package maintainers. This RFC is about easing their lives, which is a good idea :) I'm +1 for not supporting Apache1.x anymore, as it's been EOL'd anyway (like th eRFC says). Julien.P > > On Fri, Feb 24, 2012 at 4:44 PM, Kris Craig wrote: > > > Oh ok, I think I see where you're getting confused. > > > > This problem occurs when your LoadModule statement is in a > *separate*.conf file; i.e. using the "Include" statement. APXS cannot > detect this > > and just sticks a LoadModule into the main .conf file. This is what > causes > > the duplication. It's a very common issue as many people (myself > included) > > prefer to keep their PHP configurations separate. > > > > --Kris > > > > > > > > On Fri, Feb 24, 2012 at 4:42 PM, Christopher Jones < > > christopher.jones@oracle.com> wrote: > > > >> > >> > >> On 02/24/2012 04:14 PM, Kris Craig wrote: > >> > >>> No, it happens and it's even clearly documented in APXS. > >>> > >>> Basically, if you specify the "-a" option in APXS, it overwrites your > >>> httpd.conf (or apache.conf or whatever it is on your system) and adds > the > >>> LoadModule line to it. In PHP's configure script, you'll notice that > >>> "-a" > >>> is always specified; there's no option to use APXS without it. As a > >>> result, "make install" will always overwrite your LoadModule entry in > >>> httpd.conf if APXS is enabled. The problem occurs when you have > >>> LoadModule > >>> in an included .conf file already; APXS does not have the ability to > >>> detect > >>> that. Therefore, a "duplicate" LoadModule entry is added to httpd.conf > >>> by > >>> APXS, and thus the clash occurs. This behavior has been reproduced > >>> numerous times. > >>> > >> > >> I can start with a LoadModule line, run the exact apxs command that > >> the PHP Makefile executes and I still have only one LoadModule in the > >> file. Note the time stamp of the file changes. > >> > >> cjones:~/phpbuild/php53 $ ls -l /home/cjones/apache22/conf/**httpd.conf > >> -rw-r--r-- 1 cjones cjones 13998 2012-02-24 16:30 > >> /home/cjones/apache22/conf/**httpd.conf > >> > >> cjones:~/phpbuild/php53 $ grep libphp5 /home/cjones/apache22/conf/** > >> httpd.conf > >> LoadModule php5_module modules/libphp5.so > >> > >> cjones:~/phpbuild/php53 $ /home/cjones/apache22/bin/apxs -S > >> LIBEXECDIR=/home/cjones/**apache22/modules -S > SYSCONFDIR=/home/cjones/**apache22/conf > >> -i -a -n php5 libphp5.la > >> /home/cjones/apache22/build/**instdso.sh > SH_LIBTOOL='/home/cjones/**apache22/build/libtool' > >> libphp5.la /home/cjones/apache22/modules > >> /home/cjones/apache22/build/**libtool --mode=install cp > libphp5.la/home/cjones/apache22/modules/ > >> cp .libs/libphp5.so /home/cjones/apache22/modules/**libphp5.so > >> cp .libs/libphp5.lai /home/cjones/apache22/modules/**libphp5.la< > http://libphp5.la> > >> libtool: install: warning: remember to run `libtool --finish > >> /home/cjones/phpbuild/php53 /libs' > >> chmod 755 /home/cjones/apache22/modules/**libphp5.so > >> [activating module `php5' in /home/cjones/apache22/conf/**httpd.conf] > >> > >> cjones:~/phpbuild/php53 $ ls -l /home/cjones/apache22/conf/**httpd.conf > >> -rw-r--r-- 1 cjones cjones 13998 2012-02-24 16:33 > >> /home/cjones/apache22/conf/**httpd.conf > >> > >> cjones:~/phpbuild/php53 $ grep libphp5 /home/cjones/apache22/conf/** > >> httpd.conf > >> LoadModule php5_module modules/libphp5.so > >> > >> I could interpolate the "apxs -a" documentation that says "or by > >> enabling it if it already exists" to support what I see. > >> > >> Good luck with your RFC, > >> > >> Chris > >> > >> > >> -- > >> Email: christopher.jones@oracle.com > >> Tel: +1 650 506 8630 > >> Blog: http://blogs.oracle.com/opal/ > >> > >> -- > >> PHP Internals - PHP Runtime Development Mailing List > >> To unsubscribe, visit: http://www.php.net/unsub.php > >> > >> > > > --bcaec52be4932512b704b9f21390--