PHP5

Binary PHP 5.4.14 module installer for Mac OS X 10.6 (Snow Leopard, Server also supported)

The build posted here is based on Marc Liyanage build scripts, but it patched to work with 10.6 and PHP 5.4.14, and contains some new features (like XDebug, APC, ASpell)
The forked github repo can be found at: http://github.com/taracque/build-entropy-php

Binary files (libraries and executables) are i386 / x64 universal binaries, should work on each 10.6 systems.

Libraries compiled:

  • aspell-0.60.6
  • curl-7.17.1
  • freetds-0.82
  • freetype-2.4.8
  • gettext-0.18.1.1
  • imap-2007f
  • jpeg-8c
  • libiconv-1.14
  • libmcrypt-2.5.8
  • libpng-1.5.7
  • libxml2-2.7.8
  • libxslt-1.1.26
  • memcache-3.0.6
  • mysql-5.5.15
  • postgresql-8.4.8
Known limitations:
  • intl support (and icu) turned off

For further information please check Marc’s page: http://www.entropy.ch/software/macosx/php/

History

5.3.14-0
– Updated to PHP 5.4.14, several libs are updated

5.3.10-0:
– Updated to PHP 5.3.10

5.3.9-0:
– Updated to PHP 5.3.9, several libs are updated
– T1 lib added

5.3.8-0:
– Updated to PHP 5.3.8, several libs are updated

5.3.6-0:
– Updated to PHP 5.3.6, several libs are updated

5.3.5-0:
– Updated to PHP 5.3.5

5.3.4-0:
– Updated to PHP 5.3.4

5.3.3-4:
– apc added
– xdebug added (but not installed by default, must be checked in custom install)

5.3.3-3:
– pspell and tidy added
– debugger informations removed, maybe a bit faster

You can download PHP Apache module 5.3.9 installer for Mac OS X 10.6 from here:


PHP 5.4.14-0

The phpinfo(); of 5.4.14 version can be checked here.

PHP 5.3.10-0 (previous build)


Leopard users:
I’ve built a 10.5 universal binary (ppc7400,ppc64,i386,x86_64) version from the 5.3.10 installer, which can be downloaded here.

104 Responses to PHP5

  1. timmcmanus says:

    The installer has an issue on Mac OS X Server 10.6.8.

    If you comment out “LoadModule php5_module libexec/apache2/libphp5.so” in /private/etc/apache2/httpd.conf the installer will work. But once you turn on php5_module in Server Admin, the apache2_error logs generate the following error:

    [Wed Feb 15 19:27:06 2012] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
    PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/intl.so’ – dlopen(/usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/intl.so, 9): Library not loaded: libicui18n.48.dylib\n Referenced from: /usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/intl.so\n Reason: image not found in Unknown on line 0
    [Wed Feb 15 19:27:07 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r PHP/5.3.10 configured — resuming normal operations
    [Wed Feb 15 19:30:03 2012] [notice] Graceful restart requested, doing restart
    [Wed Feb 15 19:30:03 2012] [warn] module php5_module is already loaded, skipping
    [Wed Feb 15 19:30:04 2012] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
    [Wed Feb 15 19:30:04 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r PHP/5.3.8 configured — resuming normal operations
    [Wed Feb 15 19:30:04 2012] [warn] long lost child came home! (pid 1568)
    [Wed Feb 15 19:30:04 2012] [warn] long lost child came home! (pid 1567)
    [Wed Feb 15 19:30:04 2012] [warn] long lost child came home! (pid 1566)
    [Wed Feb 15 19:30:04 2012] [warn] long lost child came home! (pid 1565)
    [Wed Feb 15 19:30:04 2012] [warn] long lost child came home! (pid 1564)
    [Wed Feb 15 19:30:04 2012] [warn] long lost child came home! (pid 1563)
    [Wed Feb 15 19:30:04 2012] [warn] long lost child came home! (pid 1562)
    [Wed Feb 15 19:30:04 2012] [warn] long lost child came home! (pid 1561)
    [Wed Feb 15 19:30:04 2012] [warn] long lost child came home! (pid 1560)
    [Wed Feb 15 19:30:04 2012] [warn] long lost child came home! (pid 1559)
    [Wed Feb 15 19:30:08 2012] [notice] Graceful restart requested, doing restart
    [Wed Feb 15 19:30:08 2012] [warn] module php5_module is already loaded, skipping
    [Wed Feb 15 19:30:09 2012] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
    [Wed Feb 15 19:30:09 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r PHP/5.3.8 configured — resuming normal operations
    [Wed Feb 15 19:30:09 2012] [warn] long lost child came home! (pid 1844)
    [Wed Feb 15 19:30:09 2012] [warn] long lost child came home! (pid 1843)
    [Wed Feb 15 19:30:09 2012] [warn] long lost child came home! (pid 1841)
    [Wed Feb 15 19:30:09 2012] [warn] long lost child came home! (pid 1840)
    [Wed Feb 15 19:30:09 2012] [warn] long lost child came home! (pid 1839)
    [Wed Feb 15 19:30:09 2012] [warn] long lost child came home! (pid 1838)
    [Wed Feb 15 19:30:09 2012] [warn] long lost child came home! (pid 1837)
    [Wed Feb 15 19:30:09 2012] [warn] long lost child came home! (pid 1836)
    [Wed Feb 15 19:30:09 2012] [warn] long lost child came home! (pid 1835)
    [Wed Feb 15 19:30:09 2012] [warn] long lost child came home! (pid 1834)

    You see at the beginning of the log that 3.10.x loads but when the module is turned on in Server Admin it reverts back to 3.8.x. I’ve confirmed this with the info.php file before and after.

    I *think* commenting out the entry in /private/etc/apache2/httpd.conf and restarting the server may fix it, but it’s not a good long-term solution.

    Any thoughts?

    • Taracque says:

      Never enable PHP in Server Admin, once you have this PHP module installed.
      As Server Admin enables Apple PHP implementation it will conflict with my one, so turn it off, and leave it unchecked.

      • timmcmanus says:

        Does it use the same /etc/php.ini file? I am running into a timezone error now on the server and see a /usr/local/php5/lib/php.ini file too. Not sure if it’s pointing to that one or the one in /etc.

        Thanks for the heads up regarding Server Admin. I’m sure it’ll turn back on at some point due to some Apple voodoo. :)

      • timmcmanus says:

        Yup, it uses the /usr/local/php5/lib/php.ini file not the /etc/php.ini file.

  2. Hi,
    I have been using this on lion for a while and was surprised when I found it didnt work with mountain lion, when can we expect it to work with mountain lion?

  3. Jaap says:

    Hi,

    Installed Entropy_PHP_5.3.10-10.5.pkg on Mac OS X Server 10.5.8.

    Restarting Apache in Server Admin (after disabling the original PHP as per your instructions) results in the following error in system.log:

    httpd: Syntax error on line 1459 of /private/etc/apache2/httpd.conf: Syntax error on line 8 of /etc/apache2/sites/+entropy-php.conf: Cannot load /usr/local/php5/libphp5.so into server: dlopen(/usr/local/php5/libphp5.so, 10): Library not loaded: /usr/local/php5/lib/libjpeg.8.dylib\n Referenced from: /usr/local/php5/libphp5.so\n Reason: image not found

    Keyword is:
    /usr/local/php5/lib/libjpeg.8.dylib

    This library appears not to be included in the installation package.

  4. Hi,

    do you plan to build newer releases in the near future?

    Regards,
    Wolfgang

    • Taracque says:

      Yes I’m working on the 7.1 version, but I don’t have to much time for that. I can’t give any estimation about the 7.1 (which should work in PTT mode)

  5. kutir9 says:

    Rosaline Sweere / My biggest corcnen, and there are many, is that the cops are now in charge of deciding guilt or innocence in these cases. The perpetrator never has to make his case in court and provide a defense. So that a judge can never decide what type of case would in fact meet the legal requirement for Stand Your Ground’. He can be arrested afterward, but the crime scene evidence is gone at that point. There’s a similar situation here in cheeseland where an unarmed African American 20 year old was shot and killed in a man’s screened in porch. It’s called the Castle Doctrine’. But the cops decided that a screened in porch was covered by the law.

Leave a Reply

Or

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>