XAMPP is an installation package that brings together the Apache Web server with PHP, Perl, and MySQL, allowing users to easily set up Web servers on their own computers. With XAMPP you can easily debug your PHP programs, CMS, and WordPress blog programs on your computer. This article is mainly to share the use of XAMPP tutorial.
How to use XAMPP
1. Download XAMPP
First download XAMPP, you can click on the link provided below the page directly to the official website download.
2. Install XAMPP
I am using XAMPP Windows version of the installation package, download the installation can be directly, the installation process all the options remain the default. It is not recommended to install it directly in C disk. After the installation process is complete, you will find XAMPP under the Start/Program/xampp menu. You can use the XAMPP Control Panel to start/Stop all services or install/uninstall all services.
3. Configure XAMPP
Enter in the browser: http://localhost or http://127.0.0.1 can see the XAMPP welcome interface. If there is an error, please see if you have previously installed similar software, such as Dedecms Dedeampz, coexistence can have some conflicts, stop the operation of these software or directly uninstall.
4. Modify phpMyAdmin Configuration
First, use the relevant software to open the config.inc.php file located in the D:/xampp/phpmyadmin folder.
Search
Copy Code code as follows:
<span style= "COLOR: #000088" > $cfg </SPAN>
<span style= "COLOR: #009900" >[</SPAN>
<span style= "COLOR: #0000ff" > ' Servers ' </SPAN>
<span style= "COLOR: #009900" >]</SPAN>
<span style= "COLOR: #009900" >[</SPAN>
<span style= "COLOR: #000088" > $i </SPAN>
<span style= "COLOR: #009900" >]</SPAN>
<span style= "COLOR: #009900" >[</SPAN>
<span style= "COLOR: #0000ff" > ' Auth_type ' </SPAN>
<span style= "COLOR: #009900" >]</SPAN>
<span style= "COLOR: #339933" >=</SPAN>
<span style= "COLOR: #0000ff" > ' config ' </SPAN>
<span style= "COLOR: #339933" >;</SPAN>
Change the config (the default) to a cookie to save.
5. Landing XAMPP
Enter the phpMyAdmin interface via the phpMyAdmin navigation bar to the left of the default home page http://localhost, directly via http://localhost/phpmyadmin/into the Web login interface, Enter user name root and click Login directly (the password defaults to empty).
Note: In the default state, phpMyAdmin has two username, PMA and Root respectively. In which, Root is the administrator identity, and PMA is the normal user identity, but both in the default state no password.
6. Create a new administrator account and delete the original root account
First, enter the Permissions tab, click the root account to edit its permissions, at the bottom of the user only enter the appropriate username and password, the remaining options to maintain their default value, confirmed to generate the original root account with the same permissions of the new account; Then, edit the root account permissions again, and at the bottom of the change login information/ In the replication user, select Remove old user from user table, the remaining options are unchanged, and the original root account can be deleted after confirmation. Garden This is also for security reasons, it is not recommended to use the root user, it is best to create a new user with all the features to manage the database.
7. Change PMA account password
Similar to root, however, when changes to its account will have error messages, at this point, with the relevant software to the 63rd line of config.inc.php PMA password changes and Web settings, at this point, the landing will not be a mistake. PMA password can not be filled. It would be nice not to have him.
After the above configuration xampp basic configuration has been completed, please remember that your site root directory is the XAMPP directory Htdocs folder. You can create any site under the Htdocs directory. For example, placing the test.html under the./xampp/htdocs/new path allows you to enter http://localhost/new/test.html in the address bar of the browser to access the file.
Issues to be aware of
The administrator password, such as 1.root, does not need to be changed in config.inc.php.
2. Only PMA does not set the password, the XAMPP main interface of the MySQL database state will be shown as activated state!
3. Do not use XAMPP for Windows Version 1.5.2 with the MySQL management software you set up. If set, a My.ini file is generated in the C:/windowns directory. If you are reinstalling, you will need to remove this My.ini file to avoid affecting subsequent settings.
4. Change the default port if necessary, the default port of Apache is 80, if you have IIS, there will be conflicts. So, to change a port. Turn on the xampp/apache/conf/httpd.conf and change listen 80 to other ports, such as 99,8080 and so on.
5. You may encounter problems with XAMPP installed, accessible via localhost and IP on this machine, but not accessible by other computers on the LAN. The solution is: Modify xampp/apache/httpd.conf, listen 80 to listen 192.168.0.188:80,192.168.0.188 replaced by your server IP.