Prev | Current Page 90 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"

Enable IIS by clicking the checkbox next to it.
You??™ll also want to enable FastCGI by clicking the checkbox next to CGI. Once both
of these checkboxes have been enabled, click the OK button.
Once the installation process completes, you??™ll need to restart the operating
system for the changes to take effect.
Figure 2-1. Enabling IIS on Vista
Configuring FastCGI to Manage PHP Processes
Next you??™ll need to configure FastCGI to handle PHP-specific requests. This is done
by navigating to the IIS Manager (Start ??¤ Run, then enter inetmgr), clicking Handler
Mappings, clicking Add Module Mapping, and then entering the mapping as shown
in Figure 2-2.
PHP and IIS are now properly installed and configured on your machine. Proceed
to the next section to test your installation.
CHAPTER 2 ?–  CONFIGURING YOUR EN V IRONMENT 23
Figure 2-2. Confirming the FastCGI Handler Mapping is installed
Testing Your Installation
The best way to verify your PHP installation is by attempting to execute a PHP script.
Open a text editor and add the following lines to a new file:
phpinfo();
?>
If you??™re running Apache, save the file within the htdocs directory as phpinfo.php.
If you??™re running IIS, save the file within C:\inetpub\wwwroot\.
Now open a browser and access this file by entering the following URL: http://
localhost/phpinfo.php.
If all goes well, you should see output similar to that shown in Figure 2-3.


Pages:
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102