5 | | This page describes the installation of the PHP 5.6 server under OSX (Yosemite 10.10.2) via MacPorts (version 2.3). Date 28 December 2014 |
6 | | |
7 | | For information on integration '''Apache''' with '''MySQL''' and '''PHP''', see:''' [[howto/MAMP]]''' |
8 | | |
| 5 | = About PHP = #about |
| 6 | |
| 7 | PHP is a popular server-side scripting language frequently used to develop web sites or command line scripts. |
| 8 | |
| 9 | For information on integrating Apache with MySQL and PHP, see [wiki:howto/MAMP MAMP]. |
| 10 | |
| 11 | = Versions = #versions |
| 12 | |
| 13 | MacPorts includes several versions of PHP. You can install any or all of these versions simultaneously, though it is expected that you will only need to install one of them. |
| 14 | |
| 15 | * '''php56''': PHP v5.6.x. This is the latest stable version. |
| 16 | * '''php55''': PHP v5.5.x. |
| 17 | * '''php54''': PHP v5.4.x. |
| 18 | * '''php53''': PHP v5.3.x. This version reached [http://php.net/eol.php end of life] in 2014 and is therefore no longer recommended. |
| 19 | * '''php52''': PHP v5.2.x. This version reached [http://php.net/eol.php end of life] in 2011 and is not recommended. |
| 20 | |
| 21 | This page shows how to install and use the php56 port, but you can use another version if you prefer; all of these ports use a similar directory layout. |