Professional Documents
Culture Documents
Emision Check
Emision Check
ch/
Intro
This package installs the (usually) latest PHP 5.3.x/5.4.x/5.5.x on OS X 10.6 (aka Snow
Leopard), OS X 10.7 (aka Lion) and OS X 10.8 (aka Mountain Lion) in /usr/local/php5. It
installs many useful extensions (see below) and ini-settings and is what we at Liip and
Local.ch use for our development. It's especially suited for Symfony 2 development. It also
provides a decent php.ini with all settings configured according to "Best Practices".
It doesn't install Apache, MySQL or any other external programs. It uses the Apache
installation, which comes with OS X and for installing MySQL you can for example use
Homebrew. The package is based on entropy's php package .
PHP 5.3
1 of 6 7/24/13 12:43 PM
PHP 5.3/5.4 for OS X 10.6/10.7/10.8 as binary package http://php-osx.liip.ch/
It will ask you for your password. We install the packager in /usr/local/packer and PHP into
/usr/local/php5 and for this, we need your password. We don't do anything bad with it.
php-osx doesn't overwrite the php binaries installed by Apple, but installs everyting in
/usr/local/php5. The new php binary is therefore in /usr/local/php5/bin/php.
You can also adjust your PATH do include that directory, eg. write into your ~/.profile file the
following
export PATH=/usr/local/php5/bin:$PATH
Because we are based in Zurich (and Fribourg and Lausanne). Change the file in /usr/local
/php5/php.d/99-liip-developer.ini to adjust that.
We introduced our own ini file to be able to easily overwrite the standard values with our
recommended values. You can find it in /usr/local/php5/php.d/99-liip-developer.ini
As this is read last, it will overwrite values defined in other files. You can also just delete the
file.
If you download the native binary from mysql.com, that server uses /tmp/mysql.sock as its
socket location (see this). Therefore we choose that value as default.
We started not including the memcached daemon anymore. But you can install it by hand
with
2 of 6 7/24/13 12:43 PM
PHP 5.3/5.4 for OS X 10.6/10.7/10.8 as binary package http://php-osx.liip.ch/
It only works on a 64-bit-capable system. This means not on very old hardware with Intel
Core Duo and Intel Core Solo processors (see http://support.apple.com/kb/ht3696 for the
overview). If anyone wants to make it work on those systems too, please tell us how (We
tried, but didn't came up with anything running in a decent amount of time)
php.ini
Liip php.ini
All installed files go in a new directory with every update, you have to manually
maintain/merge your changes from the old directory! (like pear installs)
3 of 6 7/24/13 12:43 PM
PHP 5.3/5.4 for OS X 10.6/10.7/10.8 as binary package http://php-osx.liip.ch/
xdebug
If you are seeing "/usr/sbin/apachectl: line 82: ulimit: open files: cannot modify limit: Invalid
argument" when loading apache, here is a fix
If you already have installed the packager and just want to update the PHP package, you can
do it with the following line.
Included extensions
bcmath bz2 calendar Core ctype curl date dom dtrace ereg exif fileinfo filter ftp gd gettext
hash iconv imap intl json ldap libxml mbstring mcrypt memcache memcached mhash mongo
mssql mysql mysqli mysqlnd OAuth odbc openssl pcntl pcre PDO pdo_dblib pdo_mysql
pdo_pgsql pdo_sqlite pgsql Phar posix Reflection session shmop SimpleXML soap sockets
solr SPL SQLite sqlite3 standard sysvmsg sysvsem sysvshm tidy tokenizer wddx xdebug
xhprof xml xmlreader xmlrpc xmlwriter xsl zip zlib Xdebug
4 of 6 7/24/13 12:43 PM
PHP 5.3/5.4 for OS X 10.6/10.7/10.8 as binary package http://php-osx.liip.ch/
Uninstall
Change in /etc/apache2/httpd.conf
to
Source Code
build-entropy-php. Needed for generating the PHP binaries and all the needed libraries
packager by local.ch. This downloads and install the package on your computer.
php-osx. The scripts needed for doing the package and this webpage
Thanks
Thanks to Local.ch, which made all the groundwork for this. And thanks to Liip (and
especially Patrick) for everything else.
Support
We can't provide support for this, but Pull Requests are always welcome. And use the github
issues page for filing bug reports.
Latest release
5 of 6 7/24/13 12:43 PM
PHP 5.3/5.4 for OS X 10.6/10.7/10.8 as binary package http://php-osx.liip.ch/
5.5-frontenddev-5.5.0-20130621-132030
6 of 6 7/24/13 12:43 PM