How to deploy WordPress in Windows 7 (iis7.5 + MySQL + PHP + WordPress)

Source: Internet
Author: User
Tags install wordpress wordpress database

I plan to install a WordPress locally for fun. I have never touched on PHP or MySQL before.

I had a lot of tutorials on the Internet, but none of them were totally trustworthy. I had a lot of detours, but I finally got it.

To minimize detours, we feel it is necessary to record this process.

 

I wrote this tutorial for the first time. If you are a friend with no deployment experience, it's a bit cool. Please ask haihan. if the content is incorrect, please make a brick.

 

Because there are many images, it may take some time to open the webpage. Please wait.

I made this tutorial into a PDF, slow network friends can download http://files.cnblogs.com/vengen/WordPressInstall.zip here

 

Directory:

1. Install iis7.5 on Windows 7;

2. install and configure MySQL;

3. install PHP;

4. Deploy WordPress;

5. Back up and migrate the WordPress site (modified in 2009-1-2 ).

Related procedures:

Mysql-essential-5.0.67-win32.msi (Part1)

Mysql-essential-5.0.67-win32.msi (Part2)

Php-5.2.12-Win32.zip

Wordpress-2.9-zh_CN.zip

 

1. Install iis7.5 on Windows 7

A. Open "Control Panel ";

B. Find the "program and function" and open it;

C. Enable "enable or disable the WINDOWS function". To avoid troubles, we recommend that you select "Internet Information Service" and "Web core that can be hosted by Internet Information Services ";

 

D. Click OK to save the settings. IIS installation is complete.

 

2. Install MySQL and configure

MySQL I'm using is (mysql-essential-5.0.67-win32.msi)

Note: I will install them all in the D: \ server_core path, which will be used in many places. You can set it according to your own needs, but you should pay attention to the replacement during configuration.

 

A. Install MySQL and set it as shown in the figure below:

B. Configure MySQL

Test:

MySQL configuration is complete.

 

3. install PHP

PHP is (php-5.2.12-win32.zip)

A. Directly decompress the package to the path D: \ server_core \ PHP.

B. Open PHP. ini-recommended in a text editor, change the file name to PhP. ini, and make the following changes:

C. Enable iis7.5;

D. Open "handler ing ";

E. Open "add module ing" and perform the following settings;

F. "OK" to complete PHP installation and iis7.5 configuration, and restart IIS.

G. test whether the installation of iis7.5 + MySQL + PHP is successful.

Create info. php. The content is <? PHP phpinfo () ;?>,

Put this file on the default IIS Site to check whether the file is properly displayed:

If the above information is displayed, the deployment is successful. Congratulations! (However, generally, step by step following the previous steps will not fail)

 

4. Deploy WordPress

A. Extract the wordpress-2.9-zh_CN.zip to D: \ server_core \ WordPress;

B. Create a WordPress Database

Open the CMD console, enter mysql-u root-P, and enter the password.

View the existing database, and enter: Show databases;

Create WordPress database wordpress_db and input: Create Database wordpress_db;

The creation is complete. The operation process is as follows:

C. Open the wp-config-sample.php with a text editor, change the file name to the wp-config.php and make the following changes:

 

The last modification can be obtained by accessing the https://api.wordpress.org/secret-key/1.1/.

D. Add a WordPress site

Open iss7.5 and click "add Website ";

E. Configure the site:

Open http: // localhost/WP-admin/install. php and enter the blog title and your email.

Install Wordpress

This is the place where you can explore the rest!

 

5. WordPress site backup and migration

Finally, let's talk about how to back up and migrate WordPress sites,

1. It is easy to back up IIS sites. You only need to back up the D: \ server_core \ WordPress folder directly.

2. Backing up and restoring the wordpress_db database is the same principle. You can also directly operate the D: \ server_core \ mysql \ data \ wordpress_db folder, but stop the MySQL service before the operation.

Go to the control panel and open "service"

Find MySQL

Stop this service

Open the MySQL database storage directory D: \ server_core \ mysql \ data

Back up and restore the wordpress_db folder.

 

Everything is so simple!

 

 

 

Vengen

Published on

Modification

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.