| View previous topic :: View next topic |
| Author |
Message |
liyanage Site Admin

Joined: 22 May 2003 Posts: 1104 Location: Zurich, Switzerland
|
Posted: Sun Mar 15, 2009 0:34 Post subject: Entropy PHP 5.2.9 Release 3 for 10.5 Available for Testing |
|
|
As you may remember I ran into difficulties building the PHP package as 4-way universal binary a loooong time ago after Leopard came out. I never found time to resolve all these issues and the package was practically abandoned after some betas.
Now my friend Joachim Fornallaz, sponsored by Straumann AG, did all the work of updating my build system, many of the libraries needed for the extensions, and the PHP sources. The result is an up to date 5.2.9 package with most, but not all, of the usual extensions present. PDFLib lite is currently missing, for example.
The module works well in our own tests. Some of the issues seem to have simply disappeared in the long time since the last beta. I found no MySQL or mcrypt problems, for example (but we need more testing).
Unlike the last few betas, this release is again distributed as an Installer package and not as a .tar.gz file that you need to unpack yourself. As usual with my packages, it installs everything into /usr/local/php5/.
It is for Mac OS X 10.5 / Leopard only. That means that it only works with the Apache 2 included by Apple in Leopard. It activates itself by placing a symbolic link to the config file snippet /usr/local/php5/entropy-php.conf into the directory /etc/apache2/other/. Apple’s main httpd.conf file stays completely untouched.
All you have to do to remove the package again is this:
| Code: | sudo rm -rf /usr/local/php5
sudo rm /etc/apache2/other/*entropy* |
Feel free to test this release on your machines and let us know how it works:
http://www2.entropy.ch/download/Entropy%20PHP%205.2.9-3.pkg
Then say thanks to Joachim and Straumann AG
Now a word about the problematic long release gaps. Many people seem or seemed to depend on this distribution, but with such long gaps it’s obviously not a good option for production systems.
I still don’t have a lot of time this year (mostly because I’ll be moving from Switzerland to the US in ’09) so I’d like to broaden the developer/maintainer base for this distribution and its build system.
To make it easier to work on it collaboratively, we put the (now updated) code of my Perl-based build system on GitHub. I hope this will encourage others to participate and thus keep updates coming regularly in the future, even when I don’t have time to do them.
I also introduced a test suite that exercises some of the PHP extensions that had Intel/PPC and/or 32/64bit issues. The test suite runs all tests three times, each time with Apache running under a different architecture (ppc, i386, x86_64). I would like to see more of these tests and it’s an easy way to start contributing. It only takes a bit of Perl and PHP knowledge.
http://github.com/liyanage/build-entropy-php/
Ideally, people who know how to build open source packages as universal binaries (and who know Git) would fork the code using GitHub’s fork feature. Then, when extension libraries or PHP itself changes, they’d update the code, build the module, run the tests and then commit to their fork. I could then merge the changes into my repository and publish a new release build.
That’s the plan, anyway... We’ll see how it works out  |
|
| Back to top |
|
 |
theKiwi
Joined: 22 Nov 2004 Posts: 12
|
Posted: Sun Mar 15, 2009 20:46 Post subject: |
|
|
Welcome back Marc - what a nice surprise, AND what a way to mark your 1000th post!!!!!!
I'll install this onto my MacBook later today and if that goes OK I'll put it onto my MacPro which has been running your 5.2.5 Release 6 Beta since I got it in February of 2008.
Cheers
Roger |
|
| Back to top |
|
 |
liyanage Site Admin

Joined: 22 May 2003 Posts: 1104 Location: Zurich, Switzerland
|
Posted: Sun Mar 15, 2009 21:08 Post subject: |
|
|
| theKiwi wrote: | | Welcome back Marc - what a nice surprise, AND what a way to mark your 1000th post!!!!!! |
Oh what a funny coincidence! I didn’t notice that  |
|
| Back to top |
|
 |
KeepAlive
Joined: 02 Jan 2006 Posts: 3 Location: Neuchâtel, Switzerland
|
Posted: Mon Mar 16, 2009 10:06 Post subject: |
|
|
Thanks very much to Joachim for his work, I've been trying to compile my own PHP with extensions for ages (not even universal binary).
I just installed the new beta (on ppc64 architecture aka G5) and there seems to be an issue with the mcrypt.so extension: Apache cannot start and returns the following error when running configtest:
| Code: | | httpd: Syntax error on line 488 of /private/etc/apache2/httpd.conf: Syntax error on line 8 of /private/etc/apache2/other/+entropy-php.conf: Cannot load /usr/local/php5/libphp5.so into server: dlopen(/usr/local/php5/libphp5.so, 10): Symbol not found: _xmlTextReaderSetup\n Referenced from: /usr/local/php5/libphp5.so\n Expected in: /usr/lib/libxml2.2.dylib |
And in error_log on startup:
| Code: | [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
dyld: NSLinkModule() error
dyld: Library not loaded: /usr/lib/libltdl.3.dylib
Referenced from: /usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613/mcrypt.so
Reason: image not found |
When disabling the mcrypt extension by renaming the DSO file, it starts flawlessly  |
|
| Back to top |
|
 |
liyanage Site Admin

Joined: 22 May 2003 Posts: 1104 Location: Zurich, Switzerland
|
Posted: Mon Mar 16, 2009 10:19 Post subject: |
|
|
| KeepAlive wrote: | | I just installed the new beta (on ppc64 architecture aka G5) |
Thanks for your test, that is the only architecture that I cannot test for lack of hardware.
I'll take a look at that issue. My guess is that I didn't catch this because I only tried it on machines with Xcode installed. My guess is that that machine doesn’t have Xcode a.k.a. the Developer Tools installed? What is the output of
| Code: | | ls -lFa /usr/lib/libltdl.3.dylib |
|
|
| Back to top |
|
 |
KeepAlive
Joined: 02 Jan 2006 Posts: 3 Location: Neuchâtel, Switzerland
|
Posted: Mon Mar 16, 2009 10:42 Post subject: |
|
|
| Code: | ls -lFa /usr/lib/libltdl.3.dylib
ls: /usr/lib/libltdl.3.dylib: No such file or directory |
You are right, I didn't re-installed the Apple Developer Tools on this computer right now. I will do a test again with mcrypt enabled when Xcode 3.x will be installed |
|
| Back to top |
|
 |
liyanage Site Admin

Joined: 22 May 2003 Posts: 1104 Location: Zurich, Switzerland
|
Posted: Mon Mar 16, 2009 10:58 Post subject: |
|
|
| OK. It’s a bug, users should not be required to install the dev tools, and the next release will fix that. |
|
| Back to top |
|
 |
KeepAlive
Joined: 02 Jan 2006 Posts: 3 Location: Neuchâtel, Switzerland
|
Posted: Mon Mar 16, 2009 11:16 Post subject: |
|
|
I agree with you we shouldn't need Xcode.
With Xcode installed, the new beta works out of the box on ppc64 with all extensions enabled including mcrypt.
However, I still get an error " dlopen(/usr/local/php5/libphp5.so, 10): Symbol not found: _xmlTextReaderSetup" when running apache config test, but it doesn't prevent httpd to start. |
|
| Back to top |
|
 |
liyanage Site Admin

Joined: 22 May 2003 Posts: 1104 Location: Zurich, Switzerland
|
|
| Back to top |
|
 |
hartmurmur
Joined: 01 Jun 2007 Posts: 9
|
Posted: Mon Mar 16, 2009 17:07 Post subject: Updating the httpd.conf |
|
|
Not sure if it goes without saying...
After installing the Entropy PHP package, to switch from your PHP5 that comes installed with Leopard you'll need to update your httpd.conf file to point to the Entropy version:
In httpd.conf, change:
LoadModule php5_module libexec/apache2/libphp5.so
To:
LoadModule php5_module /usr/local/php5/libphp5.so
Then restart Apache:
| Code: | | sudo apachectl graceful |
|
|
| Back to top |
|
 |
liyanage Site Admin

Joined: 22 May 2003 Posts: 1104 Location: Zurich, Switzerland
|
Posted: Mon Mar 16, 2009 17:20 Post subject: Re: Updating the httpd.conf |
|
|
| hartmurmur wrote: | Not sure if it goes without saying...
After installing the Entropy PHP package, to switch from your PHP5 that comes installed with Leopard you'll need to update your httpd.conf file |
No, you specifically do not need to do that. Read the description in my message above regarding how the module is activated.
In the regular case with an untouched httpd.conf file, you need to do nothing except maybe restart Apache, and if that's the case I'll include that restart in the postinstall script in a future release.
If you have previously un-commented the LoadModule line for Apple's PHP, then you need to comment it out again. |
|
| Back to top |
|
 |
hartmurmur
Joined: 01 Jun 2007 Posts: 9
|
Posted: Mon Mar 16, 2009 17:45 Post subject: Hmmm... |
|
|
When I leave as-is and load a page with phpinfo(); I get the Apple install config. When change httpd.conf to point direct to the Entropy version I see the Entropy details. Yes, I'm restarting Apache after the changes to httpd.conf.
What does that mean? |
|
| Back to top |
|
 |
hartmurmur
Joined: 01 Jun 2007 Posts: 9
|
Posted: Mon Mar 16, 2009 19:34 Post subject: From my log |
|
|
Just to keep documenting. Sorry if this is just cluttering up the thread.
With the default:
| Code: |
LoadModule php5_module libexec/apache2/libphp5.so
|
And then later in my httpd.conf file:
| Code: |
Include /private/etc/apache2/other/*.conf
|
I get this in my apache2 log file:
| Code: |
[Mon Mar 16 13:27:16 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Mar 16 13:27:16 2009] [warn] module php5_module is already loaded, skipping
|
|
|
| Back to top |
|
 |
liyanage Site Admin

Joined: 22 May 2003 Posts: 1104 Location: Zurich, Switzerland
|
Posted: Mon Mar 16, 2009 22:50 Post subject: |
|
|
No problem, it’s not clutter, we do need to work this out
Are you sure that what you labeled as “the default” is really what Apple ships by default in 10.5? On client or server? I thought that line is commented out in a pristine OS X install, but I could be wrong and I don’t have a fresh copy of OS X around on any machine to check.
Two friends tell me that LoadModule line is disabled in their default httpd.conf.
I probably still have to change the postinstall script so that it looks for activated LoadModule lines as in your example and disables them again. |
|
| Back to top |
|
 |
hartmurmur
Joined: 01 Jun 2007 Posts: 9
|
Posted: Mon Mar 16, 2009 23:13 Post subject: |
|
|
Correct. This is not the default httpd.conf. I've been using it for so long that I assumed that PHP was loaded by default. My httpd.conf file is barely different as most of my changes are in httpd-vhosts.conf anyway.
I'm curious as to why the need for a separate .conf file for this install rather than just pointing the httpd.conf file to the Entropy version as I mentioned originally. |
|
| Back to top |
|
 |
|