From owner-freebsd-questions@FreeBSD.ORG Thu Dec 17 07:58:27 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6B21106568B for ; Thu, 17 Dec 2009 07:58:27 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 295F08FC16 for ; Thu, 17 Dec 2009 07:58:27 +0000 (UTC) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id nBH7wK1m035430; Thu, 17 Dec 2009 07:58:23 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk nBH7wK1m035430 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1261036703; bh=OjHXTt+/lecCzuHcagQvw9QGyn1Dlwb0ZBhOM6yibnQ=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4B29E495.7030502@infracaninophile.co.uk>|Date:=20T hu,=2017=20Dec=202009=2007:58:13=20+0000|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.23=20(X11/20091129)|MIME-Vers ion:=201.0|To:=20Ian=20Fitzgerald=20|CC:=20fr eebsd-questions@freebsd.org|Subject:=20Re:=20Re-compiling=20PHP=20 changes=20server=20responsiveness|References:=20<4B2851DF.1090107@ ozemail.com.au>|In-Reply-To:=20<4B2851DF.1090107@ozemail.com.au>|X -Enigmail-Version:=200.95.6|Content-Type:=20multipart/signed=3B=20 micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D"application/pgp-signatu re"=3B=0D=0A=20boundary=3D"------------enigE798D157A21024E53933496 2"; b=yfKqqJTm8Dl2Eu9DSzm/F4Aqji0IdVj+Zwhx6rWsH1R08ozReIMDm4c62vAqegLl1 ZPercQhwZp24Bnm847Xmqj8c8MTjAyIpGJDJfiSoaf67SK1Xp7uBcU1Yb/NzTFyi2u GbQU+vH6sk2fIpquTZt1Ajkje+duR3wybPGJN7Tc= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4B29E495.7030502@infracaninophile.co.uk> Date: Thu, 17 Dec 2009 07:58:13 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.23 (X11/20091129) MIME-Version: 1.0 To: Ian Fitzgerald References: <4B2851DF.1090107@ozemail.com.au> In-Reply-To: <4B2851DF.1090107@ozemail.com.au> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigE798D157A21024E539334962" X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Re-compiling PHP changes server responsiveness X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2009 07:58:27 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE798D157A21024E539334962 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Ian Fitzgerald wrote: > Recently upgraded (fresh install) FBSD 8, including MySql, Apache22,=20 > phpMyAdmin, KDE4 Gnome2.26 from DVD iso. > Running ok as test server, but unusual error from added, complex CMS=20 > prompted me to re-install PHP5 and PHP5-extensions as pkg_add -r (using= =20 > ports files from iso), then with no success, compiling them (using port= s=20 > files from iso), with slightly different make config. >=20 > Now server does not respond, either to 'localhost' request on its=20 > browser, or specific address request from another machine on local netw= ork. >=20 > I assume re-compiling PHP would not clobber hosts or resolv.conf (they = > look ok). >=20 > I get: "[warn] (2)No such file or directory: Failed to enable the=20 > 'httpready' Accept Filter, and no new errors in=20 > /var/log/httpd-error.log" four times >=20 > Tried adding accf_http=3D"YES" to /boot/loader.conf, and re-booting of = > course. This is just a warning message and doesn't stop apache working or not. E= nabling accf_http should give you a bit of a performance boost under heavy load a= nd help you withstand certain types of DoS attack, but it's not required. > Tried refreshing ports (inital re-compile attempt failed with make=20 > complaining that postgres-client had been marked invalid - when will=20 > someone fixit?), and re-compiling apache22 =3D> no change. >=20 > ps -auxc: no httpd. >=20 > FF3 under Gnome on the machine fetches external pages, of course (using= =20 > router DNS). >=20 > What else should I look at? >=20 Try restarting httpd from the command line: /usr/local/etc/rc.d/apache22 = restart This will run a configtest and then try and start up apache. Then check that apache is still running: /usr/local/etc/rc.d/apache22 status If apache has mysteriously disappeared and there are no messages in log f= iles, then it means apache crashed during the startup process soon after daemon= ising. That's pretty diagnostic for loading a dynamic module that disagrees with= it. At a guess, and given that you've reinstalled all your php modules, I thi= nk you may be being hit by the php module load order problem. In that case, run= ning php from the command line will probably also segv on you. This is someth= ing that has had quite a lot of attention on this list, but there isn't a really g= ood solution yet, other than manually reordering the entries in /usr/local/etc/php/ext= ensions.ini Also, if you're running eAccelerator, make sure you recompile it at the s= ame time you upgrade the main lang/php5 port: eAccelerator will cause Apache to cr= ash if you try and run it against a different version of PHP than it was originally = compiled for. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigE798D157A21024E539334962 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAksp5JsACgkQ8Mjk52CukIzl6gCfaPqInXsU41hl9gE8rs+A47nl Ks8An11ibd/uFl0eOpnLot8WNsLUKeAa =sIVW -----END PGP SIGNATURE----- --------------enigE798D157A21024E539334962--