The previous section describes how to install Wordpress on your VM. This section describes how to install Wordpress locally, that is, on your computer. why? If you want to test and edit a plug-in or topic before using it, or you want to test it locally before using Wordpress.
The previous section describes how to install Wordpress on your VM.How to install Wordpress locally on your computer.
Why? If you want to test and edit a plug-in or topic before using it, or you want to try it locally before using Wordpress, installing a Wordpress locally will be very useful. especially when you become a Wordpress master and want to create a Wordpress topic or plug-in, you need to install Wordpress locally, because these require repeated debugging, local operations will be very fast and convenient. imagine that you have created a topic and you have chosen to debug it on the VM. each time you change several lines of code, you need to upload a file to check the effect. are you tired?
It's easy to install WordPress locally. come with me!
Download and install XAMPP
WordPress requires support from the PHP + MYSQL environment. PHP, MYSQL, and APACHE servers must be installed for local testing. if you learn installation one by one, you have to have a headache. to be honest, I do not know how to install PHP or MYSQL separately until now! In short, XAMPP is a suite that allows you to easily build a local host.
1. download XAMPP here. For most users, download XAMPP Lite (Lite version) is enough.
2. the installation process is also detailed on the download page. after the download, click Next to install it. note that during installation, it is best to disable software or programs that will seize ports such as thunder. otherwise, the installation may fail, or even if the installation is correct, APACHE or MYSQL cannot be started.
3. after the installation is successful, start XAMPP and activate Apache and Mysql.
4. enter http: // localhost in your browser to enter the XAMPP management interface.
Install Wordpress
1. enter http: // localhost/in your browser/PhpmyadminYou can enterMysqlManagement interface.
2. create a database, such as "wpdemo"
3. download Wordpress and put the wordpress folder in the htdocs folder in xampp.
4. modify the wordpress folder in the wp-config-sample.php file, database name entered we just created, database username fill "root", leave the password blank, save as wp-config.php file OK:
// ** MySQL settings **//
Define ('Db _ name', 'wpdemo'); // The NAME of the database
Define ('Db _ user', 'root'); // Your MySQL username
Define ('Db _ password ',");//... And password
Define ('Db _ host', 'localhost'); // 99% chance you won't need tochange this value
Define ('Db _ charset', 'utf8 ′);
Define ('Db _ collate ',");
5. enter http: // localhost/wordpress/install. php in the browser, and then install your blog according to the installation wizard.