Install and build a local wordpress blog system
We follow the steps,
(1) install the XAMPP integration package
Wordpress is running in the server environment of php + MySQL + Apache. Therefore, we need to build this environment first. I use the XAMPP software package, which is easy to install.
: Http://baoku.360.cn/soft/show/appid/346
To install XAMPP, I will not talk about it. what I want to mention is that only the default C drive (C:/xampp) is installed on the system) mySQL can only be started normally. In other words, it should also be started normally after being installed to other drive letters. I don't know where the problem is (correct ),
It may be related to system configuration. you can first try to install it to another drive letter. if an exception occurs during MySQL startup, you can uninstall it and reinstall XAMPP to the default C drive after trying other methods.
After the installation is successful, start the XAMPP Control Panel as follows:
In Actions, click the start button corresponding to Apache and MySQL to start the service.
Open the browser and enter https: // localhost/xampp/. If an error occurs, the installation of XAMPP is normal;
(2) Download and install wordpress
: Http://cn.wordpress.org/, download to local, decompress and put the wordpress package under the C:/xampp/htdocs directory. Htdocs is the file path where xampp places pages by default.
Access: http: // localhost/wordpress/, as shown in,
Click start now:
The above three steps, is the system to help you generate the WordPress wp-config.php configuration file, the role of the file, is to let wordpress and the database to establish a relationship.
Click SUBMIT. if the connection fails, check whether the database exists:
Access http: // localhost/phpmyadmin to open the MySQL interface
Create a database named wordpress
The username is root by default.
The password is blank if you have not set it,
The database host must be localhost or 127.0.0.1 directed to the local host.
Table prefix. you can use the default one first.
View the permissions of the wordpress Database. you can see the relevant information, such:
Submit again. database connection successful OK
Of course, since the purpose is to generate a wp-config.php file for a database connection, we can also do so by directly creating a wp-config.php.
Access path: C:/xampp/htdocs/wordpress
Locate the wp-config-sample.php, rename it the wp-config.php, and open the file in a text editor.
Modify the corresponding parameters:
After saving, so with the wp-config.php, the system found that the file exists, it automatically saves the steps to help us create a configuration file, but the corresponding wordpress database, we still need to check, if not, create a new one using the method above.
After the corresponding database is created, submit it again. after the database is successfully created, enter the WordPress login username, password, and other information related to the blog. follow the steps to proceed.
(3) configure the Accessed host
We have no problem accessing the blog homepage https: // localhost/wordpress/. if you want to use a domain name you like to access your blog, you must first modify your host file configuration:
In the Directory, open the hosts file in C:/Windows/System32/drivers/etc/hosts.
Write: 127.0.0.1 myhome.com, save, and restart Apache and MySQL
Access successful with https://myhome.com/wordpress!