Appendix A. Installing PHP

If you need to install PHP for yourself, this appendix is for you: It takes you through the process step-by-step, on both Linux/Unix and Windows platforms.

Linux/Unix Installation

These instructions take you through installing PHP from source, using an Apache web server. You should become the root user to perform the installation by issuing the su command and entering the superuser password.

Compiling Apache from Source

If you already have installed an Apache web server that supports dynamic shared objects (DSO), you can skip this section. To check whether your web server includes this feature, run the following command:

$ httpd –l

If the output includes mod_so.c, then DSO support is included. Note that you may have to supply ...

Get Sams Teach Yourself PHP in 10 Minutes 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.