Hi all,
I did the following steps to install php4 on IIS of windows 2000 advanced server, but still failed. Here are my steps:
Extract the distribution file to a directory C:\PHP4
php4ts.dll is copied to winnt/system32
php.ini is copied to c:\winnt
Edit your php.ini - change the 'extension_dir' setting to
point to C:\PHP4I am not sure how to do this step: On PWS and IIS, you can set the browscap.ini to point to: 'c:\winnt\system32\inetsrv\browscap.ini' on NT/2000/XP Server. Is it done by default?
To use the ISAPI module, do the following:
Under ISAPI Filters, add a new ISAPI filter. Use PHP as the filter name, and supply a path to the php4isapi.dll.
Under 'Home Directory', click on the 'Configuration' button. 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 checkbox.
Stop IIS completely (net stop iisadmin)
Start IIS again (net start w3svc)
- Testing by <?php phpinfo();?>
I get a blank screen when I run localhost/info.php
I can see the source code of your php script. This means that the web server did not send the script to php for interpretation. Something is wrong with the server configuration.
What's wrong with my steps?
I have to use IIS as I also run ASPX on other projects with the same server.
Thanks