O'Reilly logo

PHP CLI: Create Command Line Interface Scripts with PHP by Rob Aley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required