Date: Fri, 29 Aug 2014 00:30:00 -0600 (MDT) From: Dale Scott <dalescott@shaw.ca> To: Frank Leonhardt <frank2@fjl.co.uk> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: Apache 2.4, mod_php5 and php5_extensions from latest ports Message-ID: <DC93E682-577F-4B43-93D3-1340DEDA3761@shaw.ca> In-Reply-To: <53FF683F.9080803@fjl.co.uk> References: <53FF2AEE.7030501@fjl.co.uk> <53FF3948.80508@freebsd.org> <53FF683F.9080803@fjl.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
>=20 > On Aug 28, 2014, at 11:34 AM, Frank Leonhardt <frank2@fjl.co.uk> wrote: >=20 >> On 28/08/2014 15:14, Matthew Seaman wrote: >>> On 08/28/14 14:13, Frank Leonhardt wrote: >>> The problem comes with the php5_extensions. I've got Apache up and >>> running, with the www/mod_php5 port working but when I compile and >>> install lang/php5-extensions (or any of its components), Apache barfs o= n >>> start-up. I'm not a PHP person so I'm a bit out of my depth here. >>>=20 >>> First off, it couldn't find any of the extensions because it was lookin= g >>> in: >>>=20 >>> /usr/local/lib/php/20100525-zts >>>=20 >>> The extensions installed in the same directory, but without the -zts >>> tag, so I put in a symbolic link (wishful thinking!). Now it's finding >>> them but each module produces either one or other of the warnings below= : >> You've turned on the Zend Thread Safety option in at least one of the >> PHP ports, but not in all of them. The rule with ZTS is that either you >> turn it on everywhere, or you turn it off everywhere. To fix: >>=20 >> # cd /usr/ports/lang/php5 >> # make config >> (change the options as required) >> # cd /usr/ports/www/mod_php5 >> # make config >> (ditto) >=20 > Thanks! This sounds very likely. There were warnings about dire consequen= ces if it wasn't selected so, naturally, I do remember selecting that but d= idn't put 2+2 together about the -zts on the directory name. If that's the = only problem, I'll know very soon (having to build gcc WITH qfortran for th= e gd lib to compile was also fun...) >=20 I'm using apache24 with mod_php5, php5 and ell extensions installed with bi= naries using pkg. it couldn't have been easier (freebsd-10-release), upgra= ding with pkg several times now has been painless. Dale
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DC93E682-577F-4B43-93D3-1340DEDA3761>