Windows 2008 Installation Configuration Iis+php+mysql environment (super simple)

Source: Internet
Author: User
Tags install php

installation package for php5.3 and mysql5.5 http://pan.baidu.com/share/link?shareid=1128014906&uk=3243363386

One, if we are a new Windows 2008 server need to install IIS first, this simple

Open the Start menu → Server Management Click the main Menu "role" and then click "Add Role", then in the role service must choose CGI OH.

Two, install MySQL double-click the download package in the installation file can be installed

Third, install PHP (we choose the version is very important, there are two installation package, you double-click a if you can not install a double-click another can)

And then we're going to test a piece of code

Echo phpinfo (), Output normal

Another paragraph.

?
$CN = mysql_connect ("localhost", "root", "root") or Die (' Database Server Password error! ');
if ($CN)
{
echo ' success ';
}
Else
{
echo ' fail ';
}
?>

Output

Related Article

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.