This article explains how to configure an asp+.net+php environment under 64-bit Windows Server 2008. 1. After installing IIS, ASP is supported by default. Here we start installing the .NET environment. Enter the system, open “Server Manager” at the bottom-left of the desktop, as shown below
Click Features -> “Add Features” -> check ”.NET Framework 3.5.1 Features”, as shown below
Click Next and finish the installation. 2. Next, configure the PHP environment. Download php5.2.6 and find the php.ini file. After downloading, extract php5.2.6 into a folder named php, and copy php.ini into the php folder. Here we place php under the C:Program Files directory, and open php.ini with Notepad, find the line extension_dir, and change the path to the path where the ext file is located — here it’s C:Program Filesphpext. Set permissions for the php folder directory: administrators Full Control system Full Control users Read & Execute, List Folder Contents, Read. Set the system environment variable: append C:Program Filesphp at the end of the Path environment variable. Create a new system variable PHPRC with value C:Program Filesphp. IIS settings: A. Add an application pool
After adding, right-click the created php app pool -> Advanced Settings, set “Enable 32-Bit Applications” to “true”, otherwise you’ll get the error “HTTP Error 404.17 - Not Found”
B. Add ISAPI and CGI restrictions
C. Add ISAPI filter
D. Add script map
E. Set the site’s app pool to the created php app pool, restart IIS, create an info.php under the default site with the following content: [php] [/php] Open localhost/phpinfo.php to see the effect:
At this point the PHP environment configuration is complete. Your server can now run ASP, PHP, and ASP.NET programs.
