Windows Server 2008 Build PHP operating Environment graphics and text (php5.3) _win server

Source: Internet
Author: User

Download the PHP component package

First to http://windows.php.net/download/download the PHP version you need, here I download is php5.3.

Below unzip the PHP component package to disk.

Install the Microsoft Visual C + + 2008 SP1 Redistributable Package x86 edition

In the address http://www.microsoft.com/zh-cn/download/details.aspx?id=5582 download installs Microsoft Visual C + + 2008 SP1 Redistributable Package x86 edition. Note that the VC + + Redistributable Package downloaded here should correspond to the version of the PHP package you are using.

When the download is complete, click Install.

Configuring IIS

First, make sure that you have a CGI module installed on IIS.

If it is not installed, in Server Manager, open the Role Management window and add modules and components for the IIS role.

Next, configure the application mappings. Select the site and open the handler mapping interface.

Windows Server 2008 builds a PHP run environment

Source: Site Reprint Author: Anonymous Time: 2013-12-19tag:

Click "Add Module Map" in the right-hand action tab and configure each option as shown in the diagram.

Click "Yes" and the module is installed successfully.

It is also important to note that the IIS process must have access to the PHP program directory and Execute permissions.

Configure the default document in the Site administration interface.

Open, add the new default document "Index.php", which is based on the actual situation of your Web application.

Configure PHP.ini

In the PHP extract directory, we can see that there are two profiles, php.ini.development and Php.ini.production

Save the Php.ini.production as a php.ini.

Open php.ini and look for "Extension_dir ="

Remove the semicolon and configure the extension path. Then search for "windows extension" and let go of the extensions you need.

The following configurations may be the ones you must configure.

"Extension=php_gd2.dll" "Extension=php_mbstring.dll" "Extension=php_mcrypt.dll" "Extension=php_mysql.dll" " Extension=php_pdo_mysql.dll "

After the configuration is complete, you need to copy the php.ini to the C:\Windows directory.

Now you can see the effect!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.