1.XMAPP Introduction
1.1.XAMPP (Apache+mysql/mariadb+php+perl)
The X at the beginning represents X-os, which can be used under any common operating system, including Windows, Mac, Linux, and open source platforms.
XAMPP (Apache+mysql+php+perl) is a powerful building-station integration package. The original name of this package is lampp, but in order to avoid misunderstanding, the latest version has been renamed to XAMPP. It can be installed in various operating systems, such as Windows, Linux, Solaris, Mac os X, and many more languages: English, Simplified Chinese, Traditional Chinese, Korean, Russian, Japanese, etc. Many people have realized from their own experience that installing Apache servers is not an easy thing to do. It's even harder if you want to add MySQL, PHP, and Perl. XAMPP is a version of Apache that is easy to install and contains MySQL, PHP, and Perl. XAMPP is really easy to install and use: Just download, unzip, start.
The 1.2.XAMPP is: https://www.apachefriends.org/zh_cn/index.html
The above is the official address, but I directly under the Baidu, more than 100 m, soon under the good, I have installed the package, need to find me.
2. Installing Xmapp
2.1. First I created a folder Xmapp on the D drive, and then I created three folders in Xmapp.
2.2. First download the good Xmapp, put in a position, I put in D:\XAMPP\package this position.
2.2. Then double-click to enter the installation screen.
I have selected the installation path D:\XAMPP\path
Always next ...
2.3. Until the installation is finished this way.
2.4. Then I clicked on 5 start, all green, really lucky.
2.5. Fortunately, the port is usually occupied.
If the 80,443 port in Apache is occupied, refer to this article.
If the 3306 port in MySQL is occupied, refer to this article.
Other questions, Baidu Google Bar, recommend Google.
3. Configure the Virtual host
3.1. Then I created a new file in the D:\XMAPP\virtualhost ==>index.php
A very simple function, as the home page.
3.2. Locate the XAMPP installation directory ==>apache==>conf==>extra
Then open the httpd-vhosts.conf with the editor
Write the following code at the bottom of the file:
<virtualhost *:80>"D:/xampp/virtualhost" <directory "D:/xampp/virtualhost" > Options FollowSymLinks includesnoexec Indexes directoryindex index.html index.htm index.php allowoverride all Order Deny, Allow to Require all granted</Directory></VirtualHost>
View Code
:
3.3. Modify the Hosts
Enter the C-drive ==>windows==>system32==>drivers==>etc==>hosts file
However, the Hosts file cannot be modified with the editor.
The following detailed resolution modifies the hosts file.
4. Modify the Hosts file
4.1. Right-click Properties
4.2. Click the security ==> and then click Advanced in the lower right corner
4.3. Click the Change permission in the bottom left corner of the first line system==>
4.4. Click on the first line system==> and click Edit in the lower left corner
4.5. Complete control of the first line √ Remove ==> OK
4.6. You can then modify the Hosts file
Add a line of configuration at the end to ==>127.0.0.1 host name
5. Test whether XAMPP runs successfully
5.1. Open Apache First
5.2. Enter the hostname in the browser ==> my host name is: jasonjan.com
5.3.That ' s all. Good night.
Installation and configuration of Xmapp