Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 26067 invoked from network); 22 Mar 2008 07:03:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Mar 2008 07:03:54 -0000 Received: (qmail 59693 invoked by uid 500); 22 Mar 2008 07:03:42 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 59670 invoked by uid 500); 22 Mar 2008 07:03:42 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 59659 invoked by uid 99); 22 Mar 2008 07:03:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Mar 2008 00:03:42 -0700 X-ASF-Spam-Status: No, hits=1.1 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL,URIBL_RHS_DOB X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [213.123.20.127] (HELO c2bthomr09.btconnect.com) (213.123.20.127) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Mar 2008 07:03:00 +0000 Received: from [127.0.0.1] (host81-138-11-136.in-addr.btopenworld.com [81.138.11.136]) by c2bthomr09.btconnect.com with ESMTP id ANS21069; Sat, 22 Mar 2008 07:03:06 GMT Message-ID: <47E4AFA8.3060104@lsces.co.uk> Date: Sat, 22 Mar 2008 07:05:12 +0000 From: Lester Caine User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.8) Gecko/20071009 SeaMonkey/1.1.5 MIME-Version: 1.0 To: users@httpd.apache.org References: <488e9ef00803211317i1a5ed320g59c342a7e93dbccc@mail.gmail.com> In-Reply-To: <488e9ef00803211317i1a5ed320g59c342a7e93dbccc@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Junkmail-Status: score=10/50, host=c2bthomr09.btconnect.com X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A010202.47E4AF2B.0045,ss=1,fgs=0, ip=127.0.0.1, so=2007-10-30 19:00:17, dmn=5.4.3/2008-02-01 X-Junkmail-IWF: false X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Can't modify LoadModule line for PHP istojic@gmail.com wrote: > Hello all, > > A summary: > Modifying httpd.conf to try to point "LoadModule php5_module" to point > to anywhere but the original location results in Apache not being able > to start again. > > And the history... > I'm a recent Mac convert running OS X 10.5.2 (aka Leopard), with it's > pre-bundled Apache 2.2 and PHP 5.2.4. In an attempt to get GD library > working, I installed two additional copies of PHP (and one additional > copy of Apache due to a lack of understanding about how Macports > works). When I attempt to change the LoadModule line to point from the > original "libexec/apache2/libphp5.so" to a different libphp5.so file, > Apache log files show the following error when I attempt to restart it > "caught SIGTERM, shutting down". This error also occurred prior to the > second Apache installation. > > I'd like to know a) what causes this error since it seems to be a > straightforward change everywhere else I've looked, and b) how I can > verify that the second Apache install isn't running. I've already > determined that the second Apache and the "Web sharing" in System > Preferences are unrelated. > > When the server does run, I've recently begun receiving a "[warn] module > php5_module is already loaded, skipping" error twice, despite the > LoadModule line only being listed once. > > It's highly frustrating and I'd appreciate any help. Not being a Mac user I don't have direct experience, but since OSX is Linux like, I might expect similar ways of installing? When I install the php5 module with Apache the conf data is loaded into a secondary conf file which is included IN httpd.conf automatically. So if you have added the Loadmodule yourself, then the already loaded error may be caused by that file. Going on from that, multiple copies of PHP can also be a problem if they are not picking up the right php.ini. So while you may be pointing to a different copy *IT* mat be trying to load the wrong extensions because it's seeing a wrong php.ini file. When I get messed up in Linux I simply uninstall the packages that are a problem, check from the package installer where files are and verify they have been deleted, and then start again clean. The package installer is also useful in that you can see WHERE it is putting things like php.ini and IF it is creating a php.conf to go into apache. It would be nice though if there was an agreed standard as to HOW all of this actually works - switching between distributions is a pain since they ALL do something different. :( -- Lester Caine - G8HFL ----------------------------- Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact L.S.Caine Electronic Services - http://home.lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org