How to deploy WordPress in Windows 7 (IIS7.5 + MySQL + PHP + WordPress): I plan to install a WordPress locally. I have never touched on PHP and 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
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 ).
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
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 with the content: ,
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.
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"
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!