Chapter 2. Installing PHP
In This Chapter
Checking whether PHP needs to be installed
Installing PHP on Windows, the Mac OS, or Linux
Configuring PHP
Testing PHP
Activating MySQL support
Troubleshooting PHP and MySQL installations
You might or might not need to install PHP. In many cases, PHP is already installed. For instance, most recent Linux and Mac distributions automatically install PHP. PHP is not provided with the Windows operating system.
You can check to see whether PHP needs to be installed. If it isn't currently installed or if you have an older version that needs to be updated, you need to install PHP.
Installing PHP includes the following steps, which are explained in detail in this chapter:
Check to find out whether PHP needs to be installed.
Obtain the PHP software, usually by downloading it from a Web site.
Install PHP.
Configure your Web server for PHP.
Configure PHP.
Test PHP.
Activate MySQL support in PHP.
Get PHP & MySQL® Web Development All-in-One Desk Reference for Dummies® 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.