From owner-freebsd-questions@FreeBSD.ORG Thu Aug 28 13:34:03 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 822A5D14 for ; Thu, 28 Aug 2014 13:34:03 +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 3286515A4 for ; Thu, 28 Aug 2014 13:34:02 +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 s7SDDDxk098010 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO) for ; Thu, 28 Aug 2014 14:13:14 +0100 (BST) (envelope-from frank2@fjl.co.uk) Message-ID: <53FF2AEE.7030501@fjl.co.uk> Date: Thu, 28 Aug 2014 14:13:18 +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: Apache 2.4, mod_php5 and php5_extensions from latest ports Content-Type: text/plain; charset=ISO-8859-1; 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 13:34:03 -0000 Can anyone give me the runes needed to get the latest versions of PHP 5 and Apache 2.4 to work together using the latest ports snapshot? 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: PHP Warning: PHP Startup: ctype: Unable to initialize module\nModule compiled with build ID=API20100525,NTS\nPHP compiled with build ID=API20100525,TS\nThese options need to match\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525-zts/dom.so' - /usr/local/lib/php/20100525-zts/dom.so: Undefined symbol "executor_globals" in Unknown on line 0 As I said, I'm not a PHP person, but it looks obvious to me that the extension ports are out-of-sync with something (Apache 2.4 perhaps?) and/or I need to compile them in a special way to get the build numbers to match. Can any PHP people out there point me in the right direction, as all I have left to try are random tweaks? NB. I compiled PHP5 before compiling the Apache module, in case it matters. In httpd.conf the line: LoadModule php5_module libexec/apache24/libphp5.so Is where it's loading (I assume). I didn't put it there. As I said, PHP is active in Apache, it's just the PHP extension modules that won't load. There are no config files for mod_php (or anything else) in modules.d. The PHP documentation page only seems to cover 2.0 and 2.2. Thanks, Frank.