Drupal7 website + IIS7.0 + PHP + MySql, drupal7iis7.0
1. server System Environment Windows Server 2008 R2 Enterprise 64-bit operating system 2. required Software IIS7PHPManager http://phpmanager.codeplex.com/releases/view/69115php-5.5.25-Win32-VC11-x64: http://windows.php.net/download/mysql-installer-community-5.5.28.3.msi: http://dev.mysql.com/downloads/installer/Navicat_for_MySQL_10.0.11.0_XiaZaiBa.exe: vcredist_x64.exe (msvcr110.dll) Remarks: Install IIS + PHPManager + PHP tutorial steps address: http://jingyan.baidu.com/article/f0e83 A25a86cb022e59101be.html http://blog.csdn.net/zevin/article/details/69289733.configure PHP environment 1). The downloaded package (php-5.5.25-Win32-VC11-x64) is directly decompressed to c :. Copy the php-development.ini to php. ini 2 ). open php. INI file 3 ). modify extension path: extension_dir = "c: \ php-5.5.25-Win32-VC11-x64 \ ext" (here write your own actual path, note: remove the previous; semicolon) 4 ). enable the following module (php_curl.dll php_mysql.dll php_mysqli.dll php_pdo_mysql.dll php_xmlrpc.dll php_curl.dll) 5) to modify the date. timezone = "Asia/Shanghai" 4. configure MySql environment 1 ). find my under your mysql directory. in the ini configuration file, add or modify the following code: max_allowed_packet = 500 M; wait_timeout = 288000; interactive_timeout = 288000; change the configuration as needed Value. Remember to restart your mysql service. publish a website on IIS 6. use Navicat_for_MySQL_10 to create a database and import website data (data is imported through backup and restoration. modify the database link configuration of the website to open. The website root directory \ sites \ default \ settings. php finds the following code $ databases = array ('default' => array ('database' => 'database name created in step 6th ', 'username' => 'root', 'Password' => '***', 'host' => 'localhost', 'Port' => '', 'driver '=> 'mysql', 'prefix' => '',); 8. visit the published website in the browser. FAQ (Reference URL: http://blog.sina. Com.cn/s/blog_5093fd500102vkob.html) HTTP Error 500.0-Internal Server Error E: \ Program Files \ php \ php-cgi.exe-FastCGI process beyond the configured activity timeout period a search online, the solution is as follows: use % WINDIR % \ system32 \ inetsrv \ appcmd.exe list config/section: fastcgi/text: * to obtain the CONFIG of the current configuration. SECTION: "system. webServer/fastCgi "path:" MACHINE/WEBROOT/APPHOST "overrideMode:" Inherit "locked:" false "[system. webServer/fastCgi] [application] fullPath: "E: \ Prog Ram Files \ php \ php-cgi.exe "arguments:" "maxInstances:" 4 "idleTimeout:" 300 "activityTimeout:" 30 "requestTimeout:" 90 "instanceMaxRequests:" 200 "protocol: "NamedPipe" queueLength: "1000" flushNamedPipe: "false" rapidFailsPerMinute: "10" [environmentVariables] Use appcmd set config-section: system. webServer/fastCgi/[fullPath = 'e: \ Program Files \ php \ php-cgi.exe ']. activityTimeout: 600: Change the timeout period to 10 minutes (up to 1 hour). However, the following error occurs: E. RROR (message: unable to find the SITE object with the identifier "Files \ php \ php-cgi.exe"]. activityTimeout: 600. All the paths of php-cgi.exe on the Chinese website searched by ghost do not have spaces, but I can't execute it. Finally, I ran to a foreigner's website and found a solution: % windir % \ system32 \ inetsrv \ appcmd set config/section: system. webServer/fastCGI "/[fullPath = 'e: \ Program Files \ php \ php-cgi.exe ']. activityTimeout: 600 "II. % windir % \ system32 \ inetsrv \ appcmd set config-section: system. webServer/fastCgi/[fullPath = 'C: \ php \ php-cgi.exe ']. activityTimeout: 600 if it still does not work, check the IIS application pool. You can change it to the default value (DefaultAppPool ). Iii. % windir % \ system32 \ inetsrv \ appcmd set config-section: system. webServer/fastCgi/[fullPath = 'C: \ php \ php-cgi.exe ']. activityTimeout: 600 view the current configuration % windir % \ system32 \ inetsrv \ appcmd list config-section: system. webServer/fastCgi run in cmd or in C: \ Windows \ System32 \ inetsrv \ config \ applicationHost. edit config