Upgrade to PHP 5.4 or 5.5 on Mac OSX Mountain Lion

MacOSX, PHP Soft! Commenta l'articolo

There’s a bunch of ways to upgrade the preinstalled version of PHP 5.3.15 on Mac OSX Lion using Macports, brew, etc.., but to me, this was the most simplest. I took the info from http://www.coolestguyplanettech.com/upgrade-to-php-5-4-or-5-5-on-mac-osx-10-8-mountain-lion/

OSX 10.8 Mountain Lion ships with PHP version 5.3, there is an easy upgrade method to either the current stable PHP 5.4 or beta version 5.5.

The latest PHP version in this guide is from this PHP Packaged site which is being maintained for OSX and is known as a reliable source.

curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5

After it’s done, put the following in one of your PHP pages and check.
phpinfo()

In terminal, type the following:

php -v

If you are still getting the old version, it’s because the installation was done in a different directory and pointing to the old one. Type the following in terminal.

cd /usr/bin
rm php
ln -s /usr/local/php5/bin/php php

Now do a
php -v

Should be showing PHP 5.5.11.

Scrivi un Commento

Home | Graffiti e Disegni | Educazione | Chi siamo | Blog | Progetti | Contatti
RSS Feed Comments RSS Accedi