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, C: \ Windows \ System32 \ drivers \ etc \ hosts open the hosts file
Write: 127.0.0.1 myhome.com, save, and restart Apache and MySQL
Access successful with https://myhome.com/wordpress!