Windows Server 2012 builds php+mysql environment installation DEDECMS system

Source: Internet
Author: User
Tags command line install php iis mysql in file permissions

With the release of Windows 8 and the launch of its server version of Windows Server 2012, this article provides a comprehensive overview of how to build the PHP+MYSQL environment needed to install DEDECMS in Windows Server 2012. It also describes how to set the security of the server site in Windows Server 2012.

1. Add IIS Server role

Click Server Manager in the lower left corner of the taskbar, select Role-based or feature based installation on the Setup Type tab, select the current server directly in the server selection, and select Web Server in the server role (Figure 1-1).

Then, in Web Server Role (IIS), select the IIS component that you want. Additional checkboxes are required: request filtering, IP and domain restrictions, URL authorization, Windows authentication, HTTP redirection, CGI, ISAPI extensions, ISAPI filters.

When you have finished selecting, confirm the installation, and select Install ". NET Framework 3.5" on the "Features" tab and the system will install IIS and related service components.

We enter http://localhost in the browser, and if we see the following page, we have finished installing it.

2. Install MySQL server

Installing MySQL in Windows Server2012 is no different than installing it in previous versions.

2.1. From MySQL official: http://dev.mysql.com/downloads/mysql/5.1.html downloads Windows (x86, 64-bit), MSI Installer.

2.2. Double-click the installation package to install, we choose "Custom" mode, the installation directory is stored in "D:mysql", the database files stored in the "D:mysqldata";

2.3. Set the default root administrator's account password, here because we are local testing, so set the password is: 123456, if it is for the server environment, the need to be based on the circumstances of the password, port reset;

The MySQL server is now installed (figure: 2-1).

3. Install PHP

3.1. Here we choose to download PHP5.3, which can be obtained from the official: http://windows.php.net/download/. Here because we will use fast-cgi mode installation, so choose VC9 x86 Non Thread Safe.

3.2. Double-click the package to install, change the installation directory to "d:php", select the server "IIS fast-cgi";

3.3. Confirm the installation, after the installation of the command line in the input "php-v", see the figure information indicates that the installation is complete. (Figure 3-1)

4. Install IIS PHP Manager manager

In order to facilitate the management of PHP, we choose to install the PHP manage components IIS, you can download from: http://phpmanager.codeplex.com, this installation process is very simple, this is no longer described in detail.

5. Install Dedecms

5.1. Create an IIS rights control account

In order to control the site file permissions, we need to add a dedicated user to the Site Directory file permissions control of users, we can in the Server Manager in the Tools (T) menu bar, select Computer Manager, where we manage the account.

We first add a user group named "WebUsers" in Local Users and groups.

Then add an account named "Iis_dedecmsuser", which belongs to the "webusers" user group.

Notice here to cancel the remote control permission on the account, while in the user's properties "Remote Desktop service profile", "Deny user permission to log on to the Remote Desktop Session Host Server" (Figure 5.1-1).

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.