How to install and use XAMPP _ php instance

Source: Internet
Author: User
Tags wordpress blog
This article mainly analyzes and introduces the installation and use of XAMPP in detail. if you need it, please refer to it, XAMPP is an installation package that combines Apache web servers with PHP, Perl, and MySQL, allowing you to easily create web servers on your computer. With XAMPP, you can easily debug your PHP, CMS, and wordpress blog programs on your local machine. This article mainly describes how to use XAMPP.

XAMPP usage
1. download XAMPP
Download XAMPP first. you can click the link provided at the bottom of this page to download it from the official website.

2. install XAMPP
I am using the Windows installation package of XAMPP. after downloading the installation package, install the package directly. during the installation process, all the options are kept by default. We recommend that you do not directly install the 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 http: // localhost or http: // in the browser to view the XAMPP welcome page. If an error occurs, check whether you have installed similar software before, such as dedeampz of dedecms. if there is a conflict, stop the running of the software or uninstall it directly.

4. modify phpMyAdmin configuration
First, open the config. inc. php file in the D:/xampp/phpMyAdmin folder with the relevant software.

The code is as follows:

$ Cfg





$ I



'Auth _ type'





Change the config (default value) to cookie to save.

5. log on to XAMPP
Use the phpmyadmin navigation bar on the left of the default homepage http: // localhost to enter the phpmyadmin interface. you can directly access the web login interface through http: // localhost/phpmyadmin, enter the username root and click login (the password is blank by default.
Note: By default, phpmyadmin has two user names: pma and root. Root is the administrator and pma is a common user, but both have no password by default.

6. create a new administrator account and delete the original root account
First, go to the Permissions tab, click the root account to edit its permissions, and enter only the corresponding user name and password at the bottom of the page. keep the default values for other options, after confirmation, a new account with the same permissions as the original root account will be generated. then, edit the permissions of the root account again, at the bottom of the page, select "delete old user from user table" in "change logon information/copy user". The remaining options remain unchanged. after confirmation, you can delete the original root account. This operation is also for the sake of security. it is not recommended to use root users. it is best to create a new user with all functions to manage the database.

7. change the pma account password
Similar to root, but an error occurs when the account is changed. inc. when the pma password of php line 1 is changed, it corresponds to the web settings. at this time, the login will not go wrong again. You can leave the pma password empty. You just need him.

After the above configuration, the basic configuration of xampp has been completed. 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, if you put test.html in the./xampp/htdocs/new path, you can enter http: // localhost/new/test.html in the address bar of your browser to access this file.

1. the administrator password such as root does not need to be changed in config. inc. php.

2. only when pma does not set a password will the status of the MySQL database on the XAMPP main interface be displayed as ACTIVATED!

3. do not use the mysql management software that comes with XAMPP for Windows Version 1.5.2. If this parameter is set, a my. ini file is generated in the C:/windowns directory. If you want to reinstall, delete the 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 installed, there will be a conflict. Therefore, you need to change a port. Open xampp/apache/conf/httpd. conf and change listen 80 to other ports, such as and.

5. You may encounter problems where xampp is installed and can be accessed on the local machine through localhost and ip address, but other machines in the Lan cannot be accessed. Solution: modify xampp/apache/httpd. conf and change Listen 80 to Listen 80,192.168 .0.188 to the ip address of your server.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.