From owner-freebsd-questions@FreeBSD.ORG Thu Aug 28 17:34:54 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EBFDDA57 for ; Thu, 28 Aug 2014 17:34:53 +0000 (UTC) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bs1.fjl.org.uk", Issuer "bs1.fjl.org.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9D8E21748 for ; Thu, 28 Aug 2014 17:34:53 +0000 (UTC) Received: from [192.168.1.35] (host31-49-46-125.range31-49.btcentralplus.com [31.49.46.125]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id s7SHYnoh066336 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO) for ; Thu, 28 Aug 2014 18:34:50 +0100 (BST) (envelope-from frank2@fjl.co.uk) Message-ID: <53FF683F.9080803@fjl.co.uk> Date: Thu, 28 Aug 2014 18:34:55 +0100 From: Frank Leonhardt User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Apache 2.4, mod_php5 and php5_extensions from latest ports References: <53FF2AEE.7030501@fjl.co.uk> <53FF3948.80508@freebsd.org> In-Reply-To: <53FF3948.80508@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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: Thu, 28 Aug 2014 17:34:54 -0000 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 on >> start-up. I'm not a PHP person so I'm a bit out of my depth here. >> >> First off, it couldn't find any of the extensions because it was looking >> in: >> >> /usr/local/lib/php/20100525-zts >> >> 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: > > # cd /usr/ports/lang/php5 > # make config > (change the options as required) > # cd /usr/ports/www/mod_php5 > # make config > (ditto) > Thanks! This sounds very likely. There were warnings about dire consequences if it wasn't selected so, naturally, I do remember selecting that but didn'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 the gd lib to compile was also fun...) Regards, Frank.