Mac OS X ( Mavericks ) downgrade PHP 5.4 to 5.3 for drupal 6

PHP 5.5 (Current stable)

curl -s | bash -s 5.5

PHP 5.4 (Old stable)

curl -s | bash -s 5.4

PHP 5.3 (End of life)

curl -s | bash -s 5.3

PHP 5.6 (Alpha)

curl -s | bash -s 5.6

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.


Why does php -v on the command line still show my old version?

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


Why is Europe/Zurich the default timezone? Where to change that?

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.

It doesn’t take my php.ini values

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.

apc, twig and xslcache

apc, twig and xslcache need to be enabled manually in /usr/local/php5/php.d/50-extension-$name.ini.


xdebug settings needs to be configured (idekey etc) manually in /usr/local/php5/php.d/50-extension-xdebug.ini.



Change in /etc/apache2/httpd.conf

LoadModule php5_module /usr/local/php5/


LoadModule php5_module        libexec/apache2/

also delete the file +php-osx.conf and +entropy-php.conf in /etc/apache2/other

and optionally remove /usr/local/php5-*



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s