PHP installation

  • Thread starter Thread starter Ken Ford
  • Start date Start date
Jamie,

Got it work following one of the suggestions in that blog post:


btw, corey, i had the same problem. i created the directory, extracted php, copied over the recommended into php.ini, then made a
file called php.bat that contained the rest of david's script:

PUSHD %SYSTEMROOT%\System32\inetsrv
APPCMD SET CONFIG -section:handlers --[name='StaticFile',path='*',verb='*']
APPCMD SET
CONFIG -section:handlers -+[name='PHP',path='*.php',verb='GET,HEAD,POST',modules='IsapiModule',scriptProcessor='%SYSTEMDRIVE%\Inetpub\PHP\php5isapi.dll',resourceType='File']
APPCMD SET
CONFIG -section:handlers -+[name='StaticFile',path='*',verb='*',modules='StaticFileModule,DefaultDocumentModule,DirectoryListingModule',resourceType='Either',requireAccess='Read']
APPCMD SET
CONFIG -section:isapiCgiRestriction -+[path='%SYSTEMDRIVE%\Inetpub\PHP\php5isapi.dll',allowed='true',groupId='PHP',description='PHP5']
POPD

i saved that, right clicked it and chose run as adminstrator
 
Hi Ken,

Thanks for the info, i have got it working now with help from your email and
www.iis.net

thanks again,
Jamie


Ken Ford said:
Jamie,

Got it work following one of the suggestions in that blog post:


btw, corey, i had the same problem. i created the directory, extracted php, copied over the recommended into php.ini, then made a
file called php.bat that contained the rest of david's script:

PUSHD %SYSTEMROOT%\System32\inetsrv
APPCMD SET CONFIG -section:handlers --[name='StaticFile',path='*',verb='*']
APPCMD SET
CONFIG -section:handlers -+[name='PHP',path='*.php',verb='GET,HEAD,POST',modules='IsapiModule',scriptProcessor='%SYSTEMDRIVE%\Inetpub\PHP\php5isapi.dll',resourceType='File']
APPCMD SET
CONFIG -section:handlers -+[name='StaticFile',path='*',verb='*',modules='StaticFileModule,DefaultDocumentModule,DirectoryListingModule',resourceType='Either',requireAccess='Read']
APPCMD SET
CONFIG -section:isapiCgiRestriction -+[path='%SYSTEMDRIVE%\Inetpub\PHP\php5isapi.dll',allowed='true',groupId='PHP',description='PHP5']
POPD

i saved that, right clicked it and chose run as adminstrator


--
Ken Ford


Jamie Smith said:
Ken, Sorry i have had no luck. i tried to get it working follwoing the link
below
http://blogs.msdn.com/david.wang/archive/2006/04/04/HOWTO_Install_and_run_PHP_on_IIS7.aspx

but i still get a application error when i try to run the page
 
Back
Top