From owner-freebsd-questions@FreeBSD.ORG Fri Aug 29 06:31:15 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3B6A29D2 for ; Fri, 29 Aug 2014 06:31:15 +0000 (UTC) Received: from idcmail-mo1so.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id 1157B1B96 for ; Fri, 29 Aug 2014 06:31:14 +0000 (UTC) Received: from pd2mr1so-ssvc.prod.shaw.ca ([10.0.141.110]) by pd4mo1so-svcs.prod.shaw.ca with ESMTP; 29 Aug 2014 00:30:05 -0600 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=s+0R4JzlRBUW8GXF//6L4/AwYJegyFoFyppZH3AfVto= c=1 sm=1 a=FKkrIqjQGGEA:10 a=WOd5513FYV4A:10 a=GB4Qa7U45jwA:10 a=BLceEmwcHowA:10 a=kj9zAlcOel0A:10 a=jQ9__g_kAAAA:8 a=DddZLX_sBl50FhlNzHMA:9 a=CjuIK1q_8ugA:10 a=XZ7_jEjpqDEA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Received: from unknown (HELO cds005.dcs.int.inet) ([10.0.141.22]) by pd2mr1so-svcs.prod.shaw.ca with ESMTP; 29 Aug 2014 00:30:00 -0600 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Re: Apache 2.4, mod_php5 and php5_extensions from latest ports References: <53FF2AEE.7030501@fjl.co.uk> <53FF3948.80508@freebsd.org> <53FF683F.9080803@fjl.co.uk> From: Dale Scott MIME-Version: 1.0 In-Reply-To: <53FF683F.9080803@fjl.co.uk> Message-Id: Date: Fri, 29 Aug 2014 00:30:00 -0600 (MDT) To: Frank Leonhardt X-Mailer: Zimbra 7.1.4_GA_2567 (MobileSync - Apple-iPad2C5/1104.257) Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2014 06:31:15 -0000 >=20 > On Aug 28, 2014, at 11:34 AM, Frank Leonhardt 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