Objective
In order to learn automation, search for information on the Internet to learn a bit in the local installation Xmapp, build PHP environment, native deployment WordPress This open source project
Content
This is mainly divided into the following steps:
- Prepare the installation package for quick installation of Xmapp
- Modify the port number or kill the process based on actual requirements
- Put the website in Htdocs, access the installation
- Access backstage and front desk
1, Baidu search Xmapp and wordpress Windows Latest installation package, xampp for. exe files, quick installation can, according to their own needs, to modify
Since only the PHP environment is required, the installation has been removed without the need for installation options,
2, the environment will be used to the port number, mysql:3306,apache:80,443.
First look at whether these ports have services in use, DOS window: NETSTAT–ANO|FINDSTR port number, see if there is a process with port status of listening
If present, workaround, a: Kill process B: modify default port
A: Kill the process
Fetch the process number of the port listening from the previous DOS window and enter the name: Taskkill/pid process Number/F
B: Modify the port number
Click Config to select Profile to open, separately for Apache service can change the configuration file
Take the Apache default 80 port as an example and modify 80 to 81 port. Open configuration file, global search 80 is 81
3. Then unzip the downloaded WordPress package and put it under the Xmapp installation path D:\xampp\htdocs folder
Launch the Apache and MySQL services in the XAMPP Control Panel, click the Start button to start, and start successfully as follows:
Enter http://localhost:81/phpmyadmin/to access the database, build a table for WordPress
Access http://localhost:81/wordpress into WordPress installation
4. Access backstage and front desk
WordPress's front and back access addresses are as follows:
Backstage: Http://localhost:81/wordpress/admin
Front Desk: http://localhost:81/wordpress/
Connect to the database via Navicat for MySQL
A: Add users in the background, B: Click on the shell in the Xmapp panel to enter the DOS window, add or authorize by command
A: Enter into the database background, create a new user
B: Enter the shell interface in the Xmapp Control Panel, enter the database build user and Authorization command so that the corresponding IP can connect the database remotely with Navicat
Enter Mysql-uroot to access the database, note that the password is empty
Enter new and Authorized user command:GRANT all privileges on * * to ' root ' @ '% ' identified by ' 123456 ' with GRANT OPTION;
Note the point:
1, installed Xmapp if not start, check the port occupancy, solution: A. Kill the footprint Port process B: Modify the port number to other
2, Xmapp database Default user name: root, password is empty
3, before the installation of Xmapp need to build a database, note that the database character set for Utf8_general_ci, in order to avoid garbled.
4, the next access to the database can be entered http://localhost:81/phpmyadmin/for access.
Other computers need to connect data, and you can add users who are authorized to all IP access in the database. A: Add users in the background, B: Click on the shell in the Xmapp panel to enter the DOS window, add or authorize by command.
Windows7 Build Xmapp+wordpress