Building a Wordpress blog as a personal blog is a very simple task, but the reprinting on the Internet makes it difficult for beginners. In terms of my own conditions, I will use Java EE, it took me a long time to build a local blog to understand MySQL.
Note: This is a local blog, that is, a blog that uses your computer as a server. If this is not the case, it can be used as a reference. Some people have their own hosts, some buy hosts, and some buy domain names. I don't care about this for the time being, because I always need to configure these things on a computer, so I will use my computer to train my hands first. For others, how do I configure remote hosts, domain names, and so on? I search for them online. They are all configured according to different servers provided by different service providers, so I will not try again!
Premise: My computer is a win7-32 BIT system, originally installed MySQL, but in order to write this tutorial, uninstall and re-installed again.
Body start:
WordPress local installation perfect tutorial
0. Download
1. Download MySQL database [Download Extension: MSI]
: Official Website: http://dev.mysql.com/downloads/installer/5.5.html
2. Download Apache server [Download Extension: MSI]
: Official Website: http://httpd.apache.org/download.cgi
3. Download PHP [the download extension is zip]
: Official Website: http://windows.php.net/download/#php-5.3
4. Download WordPress [Download extension name: Zip]
: Official Website: http://cn.wordpress.org/
Easier to find, no longer
1. Standard installation and configuration
After the download is complete, we start the most important installation.
Install MySQL
MySQL installation is the most troublesome thing, especially when you unload it once and reinstall it, there will be many unexpected problems. There is nothing to say about the installation process, but there are several points worth attention in the middle.
There is one in the middle:
Note: select "Best suport for multilingualism" and use the uft8 character set. Click "Next"
There is another one in the middle: Just follow the configuration
There is another one: enter the password according to the configuration. The default account is root.
Note: If you have uninstalled it once and re-installed it, there may be three input boxes [except two, there is a current password], which indicates that the uninstallation is not clean, unmount the main directory, go to drive C, find programdata, delete the MySQL folder, restart the folder, and reinstall MySQL.
If you are in the first installation, you don't have to worry about the crap. Continue go on!
2. install Apache
There is nothing to say about this. After installation, enter http: // localhost /.
Note: If the configuration of Apache is changed in the following steps, restart Apache. Otherwise, the configuration is invalid.
Install 3php and configure it to Apache
In this step, you need to change the configuration file. Note: you only need to modify the Apache configuration file and restart the server.
Decompress the package to a directory.
Modify conf \ httpd. conf in the Apache directory, and add the following two lines at the end. [Use my path as an example and change it to your path ]:
Loadmodule php5_module "D:/program files/PhP5/php5apache2_2.dll"
Addtype application/X-httpd-PHP. php
There are also some modifications: Description
About 208 lines, and check whether it is configured in the htdocs directory under your own Apache.
Row 3: same configuration
Then, open the PhP5 directory. [Note: the latest PHP. ini-production corresponds to PhP. ini-recommended and PHP. ini-development corresponds to PhP. ini-Dist]
Rename PHP. ini-production to PhP. ini and save it
Then open the file in TXT.
The value to be modified is about 809 rows.
; Extension_dir = "Ext"
Change the second line to [remove the previous; number]
Extension_dir = "D:/program files/PhP5/EXT"
About 960 lines are changed as follows:
Copy php5ts. DLL to c: \ windows \ system32,
Change PHP. ini-recommended [PHP. ini-production] to PhP. ini [as mentioned above] and copy it to c: \ windows.
Restart the server
Verification: whether it is bound
Test whether Apache works:
Enter http: // localhost in the browser. If "It works!" is displayed! ", Indicates that Apache is successfully installed.
Test whether PHP is loaded successfully:
Compile a PHP file (index. php ):
<? PHP phpinfo ();?>
Copy the file to \ htdocs under Apache, and enter http: // localhost/index. php In the browser. If it is displayed, the file is loaded successfully.
If an error occurs, follow the instructions to see what the error is. Google it yourself. This is normal.
4. Configure WordPress
Decompress WordPress and copy all the files in its main directory to htdocs in the Apache main directory, as shown in
Use WordPress
First create a database, as shown in figure
Enter 127.0.0.1/WP-admin/install in the browser. PHP [errors may occur: Your PHP does not seem to have installed the MySQL extension necessary for running WordPress. If an error occurs, please use Baidu. I am not very familiar with some situations]
Click Create configuration file to go to the following page. Fill in the relevant information, pay attention to the database is just created the library, that is, WordPress, step by step after the configuration, it is OK [here you can also use the configuration file wp-config.php, this file in WordPress, but changed the name only: wp-config-sample.php, open it configuration on the line, inside the comment is very clear]
My blog is coming out: Like
3. Summary
Summary: In general, WordPress is much easier to get a blog on than octopress + grup. octopress is simply an installation of force control, which is the best choice for throttling. This is enough for a long time! However, I suggest you do this because it will not affect MySQL usage. If you use the integrated package, it will have a great side effect. I will not talk about it here, if you cannot use anything in the integration package, you can try searching for the integration package on the Internet. It seems fast, but it is best for me to configure it separately. Other operations are not affected. The octoberpress I configured a few days ago is not configured properly, mainly in windows, the configuration is not good, if it is a Linux system, it is quite simple, WordPress is also quite simple. So I suggest: if you are a Linux system, it is easy to configure any one. If it is a Windows system, you 'd better use WordPress !!!