XAMPP builds WordPress local operating environment

Bi She chose a topic at random and made a personal blog. First of all, he thought of WordPress, which he used to build a blog before. It is impossible to go to war on the existing blog. The previous chat room course design used XAMPP, so I decided to use XAMPP to build a WordPress development environment locally.
The operating environment used in this article is Windows 10 64-bit operating system, and the software version is XAMPP 7.4.10 and WordPress 5.5.3.

! ! !
This article is written after completion, mainly for recording the operation process and problem-solving ideas, so it will be relatively rough.

1. Download the corresponding version of XAMPP and install
insert image description here
XAMPP, which integrates Apache, MySQL, and PHP, which is very convenient for building a website

2. Start XAMPP
insert image description here
and click Start on the right side of Apache and MySQL to see if it can be started correctly.
The port number and SSL port number of the server here have been changed because of a port conflict with the software I installed before.
If it cannot be started correctly, check whether the port number conflict is the reason. Click Netstat to view the port occupation.
insert image description here
If not... I would also like to see that question. The default port of MySQL is 3306. If the port is occupied, it should be that MySQL has been installed before, then you will see the mysqld.exe process on port 3306. It is recommended to uninstall other software. Otherwise, it is necessary to modify all items with a port value of 3306 in my.ini under the xampp\mysql directory, config.inc.php under xampp\phpmyadmin, and php.ini under xampp\php and the wp-config-sample.php file Make changes to the default DB_HOST in MySQL.
Among them, MySQL and PHP can quickly find the file in the corresponding config option in the XAMPP program running box to make changes.

/** MySQL database password */
define( 'DB_PASSWORD', 'password_here' );

/** MySQL hostname */
define( 'DB_HOST', 'localhost' );

/** Database Charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8' );

3. Log in to the official website to download the WordPress
insert image description here
official website. There are two official websites, wordpress.com
that provides hosting and wordpress.org with more freedom. After downloading, decompress it to the phpmyadmin directory. Therefore, unzipping to the xampp directory cannot call the contents of the wordpress folder in the browser. 4. Create a new database Open the browser, enter localhost: (server port number, mine is 82):/phpmyadmin, log in to the database, click New on the left, name the database, select utf8mb4_general_ci for the encoding method, click Create, and create a new empty database. 5. To install Wordpress, enter localhost:(server port number)/phpmyadmin/(wordpress folder name) in the window bar and press Enter to enter the following interface. Select the language and continue. Select Start now . In XAMPP, the default MySQL user name is root and password If it is empty, just delete the word password in the password column. Fill in the information and submit. Just confirm the rest of the way! final effect



insert image description here



insert image description here

insert image description here

insert image description here

insert image description here


insert image description here

Guess you like

Origin blog.csdn.net/zhanwaifeixue/article/details/109669910