XAMPP is an installation package that sets up the Apache Web server with PHP, Perl, and MySQL, allowing users to easily build Web servers on their own computers. With XAMPP you can easily debug your PHP programs, CMS, and WordPress blog programs natively. This article mainly shares the use of XAMPP tutorial.
XAMPP How to use
1. Download XAMPP
First download XAMPP, you can directly click on the official website to download the link below the page.
2. Installing XAMPP
I am using XAMPP's Windows version of the installation package, download and install directly, the installation process all the options remain the default. It is not recommended to install directly on the C drive. 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 to see the XAMPP Welcome screen. If an error occurs, please check if you have previously installed similar software, such as Dedecms Dedeampz, coexistence can be a bit of a conflict, stop the operation of these software or directly uninstall.
4. Modify the phpMyAdmin configuration
First use the relevant software to open the config.inc.php file located in the D:/xampp/phpmyadmin folder.
Search
Copy the Code code as follows:
$cfg
[
' Servers '
]
[
$i
]
[
' Auth_type '
]
=
' config '
;
Change the config (system default) to a cookie save.
5. Login XAMPP
Through the default home page http://localhost to the left of the phpMyAdmin navigation bar to enter the phpMyAdmin interface, directly via http://localhost/phpmyadmin/into the web landing interface, Enter the user name root and click Login directly (password default is empty).
Note: In the default state, phpMyAdmin has two usernames, PMA and Root, respectively. Where Root is the administrator, while the PMA is a normal user, neither of them has a password in the default state.
6. Create a new admin account and delete the original root account
First go to the Permissions tab, click on the root account to edit its permissions, at the bottom of the only input the corresponding user name and password, the remaining options to maintain their default values, confirm the original root account with the same permissions to create a new account; Then, edit the root account permissions again, and at the bottom of the change login information/ Copy user Select "Remove old user from user table", the remaining options will not change, 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 the PMA account password
Similar to root, however, when you change their account there will be an error message, at this time, with the relevant software will config.inc.php 63rd line of the PMA password changes and Web settings correspond, at this time, the login will no longer be wrong. The PMA password may not be filled in. I'll be fine without him.
After the configuration of XAMPP has been completed, please remember that your site root directory is the Htdocs folder under the Xampp directory. You can create any site under the Htdocs directory. For example, by placing test.html in the./xampp/htdocs/new path, you can access the file by entering http://localhost/new/test.html in the address bar of the browser.
Issues to be aware of
Administrator passwords such as 1.root do not need to be changed in config.inc.php.
2. Only the PMA does not set the password, the XAMPP main interface of the MySQL database status will be displayed as activated status!
3. Do not use XAMPP for Windows Version 1.5.2 's own MySQL management software to set. If set, a My.ini file is generated in the C:/windowns directory. If you are reinstalling, you will need to delete this My.ini file to avoid affecting subsequent settings.
4. If necessary, change the default port, Apache default port is 80, if you have IIS, there will be a conflict. So, to change a port. Open the xampp/apache/conf/httpd.conf and change the listen 80 to another port, such as 99,8080 and so on.
5. You may experience problems with XAMPP installed, which can be accessed natively through localhost and IP, but not accessible by other machines on the LAN. The workaround is: Modify the xampp/apache/httpd.conf, change the Listen 80 to listen 192.168.0.188:80,192.168.0.188 to your server's IP.
http://www.bkjia.com/PHPjc/621716.html www.bkjia.com true http://www.bkjia.com/PHPjc/621716.html techarticle XAMPP is an installation package that sets up the Apache Web server with PHP, Perl, and MySQL, allowing users to easily build Web servers on their own computers. With XAMPP you can ...