2.2. Installing Apache with PHP from Source

PHP can be run on multiple platforms and it can interact with various Web servers. However, the most widespread Web servers are Apache and Microsoft's IIS. In this section you will see how PHP can be compiled in combination with Apache.

2.2.1. Installing Apache with PHP on Unix

Installing Apache with PHP on Unix is not difficult. In contrast to installing binary packages, installing the sources has some advantages. The biggest advantage is most likely that you know exactly which flags have been enabled and which components have been compiled into your binaries. If you are planning to modify the core of Apache or PHP, you have to compile the source code; otherwise, there is no way to make the changes ...

Get PHP and PostgreSQL: Advanced Web Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.