By following the last steps, you might wonder why your PHP on IIS wont work.
This is the continuation of the configuration.
Properties side:
1. Open IIS.
2. Go to Web Sites -> Default Wed Sites and right click.
3. Choose Properties.
4. Go to Home Directory and check Read below Local Path.
5. Choose Execute Permissions to Script Only, and click Configuration.
7. Look at Application Extensions. If .php is available, choose it and click Edit; else, click Add.
8. You can either choose whether you like ISAPI or CGI.
for ISAPI:
a. Click Browse, look for php5isapi.dll inside C:\php, and click OK.
b. Set Extension to .php
for CGI:
a. Click Browse, look for php-cgi.exe, and click OK.
b. Set Extension to .php
8. Click OK.
9. Go to ISAPI Filters and Click Add.
10. Browse for php5isapi.dll, and click OK.
Permissions side:
1. Right click on Default Web Sites and choose Permissions.
2. Click on every user and check Full Access - Allow. (I just simply clicked all, just to make sure it will work.)
3. Click Apply, OK.
4. Go to Web Service Entensions and click Add a new Web servide entension...
5. Type Extension name as .php (or anything you like)
6. Click add and Browse.
for ISAPI:
a. Look for php5isapi.dll inside C:\php, and click OK.
for CGI:
a. Look for php-cgi.exe, and click OK.
7. Check Set extension status to Allowed and click OK.
8. Right click MACHINENAME(local computer) -> All Tasks -> Restart IIS...
9. Open internet browser and type http://localhost/phpinfo.php.
No comments:
Post a Comment
^___^