Tuesday, August 2, 2011

Batch Update File/Directory Right

sudo find . -type d -exec chmod 755 {} \;
sudo find . -type f -exec chmod 644 {} \;

Tuesday, June 7, 2011

Install PHP on IIS7

1. Run PHP window installer.

2. inetmgr

3. Handler Mappings
> Add Script Map...
- Request path = *.php
- Executable = ...\php5isapi.dll
- Name = PHP-ISAPI
> OK
> OK

4. ISAPI and CGI Restrictions
> Add...
- ISAPI or CGI path = ...\php5isapi.dll
- Description = PHP
- Allow extension path to execute = checked
> OK (may exist already)

5. Default Document
> Add...
- Name = index.php
> OK

6. Restart IIS