Checking Whether PHP is Installed


To see whether PHP is installed, search your disk for any PHP files:

If you do not find any PHP files, PHP is not installed. In general, PHP is not installed on Windows computers. See the sections that show how to obtain (Obtaining PHP) and install (Installing PHP) PHP.

If you find PHP files on your computer, PHP may or may not be ready to go. The files may reside on your disk, but PHP may not have been installed. Or, PHP may be installed, but may not be the most recent version. You may want to install a later version.

You can test whether PHP is ready to go using the testing procedure described in Testing PHP. The test in the testing section can be used to determine whether PHP is installed and to see which version is installed.

Most Mac OS X versions since X.3 come with PHP already installed, but Apache may not be configured to handle PHP code. If PHP is installed on your Mac, but doesn't seem to be working, try following the instructions in Configuring Your Web Server for PHP. Editing the httpd.conf file as described in that section may be all you need to do to get your PHP up and running.