()'?'
,,butnowthatsopenedawholenewcanofworms.I'mgettingthesameAccessisdenied.errorasbefore!evenwhenichangefileextensionsto.html,itappearsmysiteisntdirectingtothedefaultdocument,aswhenigotowww.mysite.co.uk,igettheerror,butifigotowww.mysite.co.uk/index.php,itworksfine!ihaveaindex.phpentryinmydefaultdocuments,andaindex.html,andneitherseemtobeworkingafterthePHPinstall
permissionontherootdirectoryarefullcontrolto,Administrator,Myuseraccount,'NETWORKSERVICE'and'SYSTEM',justtonote,icouldntgetthesitetoworkatallwithoutsettingthe'connectas'optiontomyuseraccountandpassword,sothatswhatitsusingtoaccessthefiles.
解决方案
Ithinkthismayhelpyou;
http://php.net/manual/en/install.windows.iis7.php
Itsaysforiis7andabove,letmeknowifdoesn'tworkandI'lldigdeeper.
Theprocessis;
1-ConfigureCGI-andFastCGIsettingsinyourphp.inisuchas
Fastcgi.impersonate=1
fastcgi.logging=0
cgi.fix_pathinfo=1
cgi.force_redirect=0
2-TheninWindowstypeinetmgrintorununderthestartmenu.
3-Selecttheservernodeinthewindowthatopenswhichisintheconnectionstree.
4-Inthecentralpane,knownasthefeaturesview,opentheHandlerMappingsfeature.
5-Intheactionspaneclick**AddModuleMapping..."
6-Usethesedetailstofillintheblanks;
Requestpath:*.php
Module:FastCgiModule
Executable:C:\[pathtophpinstall]\php-cgi.exe
Name:PHP_via_FastCGI
7-Clickrequestrestrictionsandthenconfigurethemappingtoinvokehandleronlyifrequestismappedtoafileorfolder.
8-Clickokayonalldialoguestosavetheconfig.
Thelinkatthetopprovidesfurtherinformationonconfigurationexamplesandhowtodothisfromthecommandline.YoushouldrestartIISonceyou'redone.