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. I plan to install a local WordPress for my friends who have no deployment experience. I have never touched 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.
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 InternetInformation Services can carry ";
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 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 and enter mysql-u root-p. Enter 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 is accessible. Https://api.wordpress.org/secret-key/1.1/ Obtain
D. add a WordPress site
Open ISS7.5 and click "Add website ";
E. configure the site:
Open Http: // localhost/wp-admin/install. php 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
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.