
2. Start the Microsoft Management Console (it might appear as the Internet Services
Manager, either in your Windows NT 4.0 Option Pack branch or in the Control Panel,
Administrative Tools under Windows 2000).
3. Right-click the Web server node and select Properties. Under ISAPI Filters, add a new
ISAPI filter. This dialog box is shown in Figure A.6. Use PHP as the filter name, and
supply a path to the php4isapi.dll that is included in the PHP 4 distribution.
Installing PHP 4 and MySQL
A
PPENDIX A
A
INSTALLING PHP 4
AND MYSQL
801
FIGURE A.6
Adding the PHP interpreter as an ISAPI filter.
4. Under Home Directory, click the Configuration button and add a new entry to the
Application Mappings. Use the path to the php4isapi.dll as the executable, supply .php
as the extension, leave Method exclusions blank, and check the Script engine check box.
5. Stop IIS completely by typing ‘net stop iisadmin’ on a command prompt.
6. Now start IIS again by typing ‘net start w3svc’ on a command prompt.
7. Put the test.php file under your Web server’s document root. The test.php file will
contain the following line:
<?php phpinfo(); ?>
If it works, you should see something similar to Figure A.2.
Installation Notes for Microsoft PWS
1. Install the php.ini file and the DLLs as mentioned previously.
38 7842 app a 3/6/01 3:40 PM Page 801
Comentarios a estos manuales