APPENDIX A: Compiling and Installing PHP, Extensions, and Libs
There are a dozen different ways to get PHP, including downloading and compiling it yourself, downloading precompiled binaries, using package managers and software repositories, and finding it pre-installed by a forward-thinking administrator. On most Linux distributions, PHP can be installed with a one-line command such as sudo apt-get install php5 or through graphical package managers such as the Synaptic Package Manager or the Ubuntu Software Center . Many common PHP extensions and add-ons are likewise available as prebuilt packages or alternatively through the PECL and PEAR systems.
However, sometimes it becomes necessary to do a little more work to install PHP, such as the following: ...
Get PHP CLI: Create Command Line Interface Scripts with PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.