XAMPP is an open-source, free network server software. After simple installation, you can build a server environment on your PC. This article describes how to install XAMPP (ApacheMysqlPHP) in Windows and how to use it and its related problems. 1. What is XAMPPXAMPP (X-system, A-Apache, M-Mysql, P-php, P-PhpmyadminPe )?
XAMPP is an open-source, free network server software. After simple installation, you can build a server environment on your PC. This article describes how to install XAMPP (ApacheMysqlPHP) in Windows and how to use it and its related problems. 1. What is XAMPP (X-system, A-Apache, M-Mysql, P-php, P-Phpmyadmin/Pe )?
XAMPP is an open-source, free network server software. After simple installation, you can build a server environment on your PC. This article describes how to install XAMPP (Apache + Mysql + PHP) in Windows and how to use it and its related problems.
1. What is XAMPP?
The abbreviation XAMPP (X-system, A-Apache, M-Mysql, P-php, P-Phpmyadmin/Perl) indicates the files contained in the XAMPP installation package: Apache web server, mySQL database, PHP, Perl, FTP service program (FileZillaFTP) and phpMyAdmin. To put it simply, XAMPP is a server system development kit integrated with Apache + MYSQL + PHP. It also includes the phpMyAdmin tool for MySQL management to perform visual operations on MySQL. With this close integration, XAMPP can run any program: from the personal homepage to a fully functional product site (although this is only for development purposes; for security considerations, XAMPP is not suitable for use on product servers ).
2. How to obtain XAMPP
XAMPP is free and can go to the XAMPP website to learn more (http://www.apachefriends.org/zh_cn/xampp.html ). The latest version is 1.8.3 (but no installation-free version is available), which is applicable to Linux, Windows, Mac OS X, and Solaris XAMPP. In Windows, there are two types of file downloads:
- EXE installation version: the installation file of installer.exe is also available. After downloading the file, install it according to the graphical Installation Wizard, which is relatively simple.
- Compression without installation: Decompress the package and update the configuration file.
Iii. How to install XAMPP in Win7
Note:
If wamp has been installed on windows, uninstall Apache, Mysql, and php. Because these are already integrated in XAMPP. The uninstallation method is not described here. Baidu Google. In fact, if the previously used Apache is not an installation version, you do not need to uninstall it. But MySQL to uninstall, MySQL fully Uninstall a little trouble, here I refer to the uninstall method: http://www.cnblogs.com/85538649/archive/2011/08/03/2126171.html
Installation Method A: Install the EXE installation package directly according to the installation wizard, which is relatively simple.
Installation Method B: for downloading compressed files, if you do not need an installation package, you can download the 7-ZIP package or ZIP package and decompress it to the folder you choose, according to your own habits, you can put it anywhere.
Right-click shift in the extracted file and click "Open command line here". Run setup_xampp in cmd. After the command is executed, press any key to continue the installation.
4. Start XAMPP
Start the xampp console double-click the: xampp-control.exe under the xampp directory, start the xampp console, In this console to start and stop Apache and MySQL and other control ,:
After the startup is successful, click Admin to log on to the corresponding server.
5. Solution to Apache service startup failure
Here we often encounter a problem, that is, Mysql can be started successfully and Apache cannot be started.
The owner does not know how to read logs. After checking the information on the Internet for a long time, he can find the problem and the solution. Here, I have to say a word about the importance of log.
Run apache/bin/httpd.exe to print the following log:
(OS 10048) Generally, each socket address (Protocol/network address/port) can be used only once. : Make_sock: cocould not bind to address 0.0.0.0: 443
That is, port 443 is occupied, and apache cannot listen to port 443. The occupied program is vmware-host.exe.
How can this problem be solved? The most direct method is to find and close the process that occupies port 443:
1. netstat-ano: check which process occupies port 443 and find the pid Number.
2. Print tasklist in cmd to find the process that occupies port 443.
3. Kill the taskkill/pid port number to kill the process or locate and close the process in the task manager. Restart apache with XAMPP.
The host uses the vmware-host.exe client. You can disable this process without using a virtual machine. You can simply end the process in the task manager.
Vi. Control Panel settings
We can see some basic control functions of xampp 1.7.2. Note that you are not recommended to register these functions as a service (start upon startup). You can run the software on your own every time you use them, this saves more resources when XAMPP is not used. In other words, personal computers are not used as web servers for a long time. Therefore, you do not need to select the check box before setting Svc in Modules. XAMPP in Svc mode will be registered as a Windows system service, apache and mysql modules are started every time the system starts. To Start Apache or Mysql, you only need to open the XAMPP control panel and click Start next to it. Then, the started running status is displayed. If it is used as a server for a long time, you can consider registering the service.
Some default configurations and related configuration files in XAMPP:
1) the default password for XAMPP Mysql is (this is also the account and password used for phpMyAdmin logon ):
User: root Password :( null)
2) the default password of XAMPP FileZilla FTP is:
User: newuser Password: wampp
User: anonymous Password: some@mail.net
3) The default account and password for XAMPP Mercury are:
Postmaster: postmaster (postmaster @ localhost)
Administrator: Admin (admin @ localhost)
TestUser: newuser Password: wampp
4) the default password of xampp webdav is:
User: wampp Password: xampp
5) the path of the configuration file for related services in XAMPP is:
- Apache configuration: \ xampp \ apache \ conf \ httpd. conf;
- PHP: \ xampp \ php. ini;
- MySQL: \ xampp \ mysql \ bin \ my. ini;
- PhpMyAdmin: \ xampp \ phpMyAdmin \ config. inc. php;
- FileZilla FTP Server: \ xampp \ FileZillaFTP \ FileZilla Server. xml;
6) The default path of the XAMPP website root directory is \ xampp \ htdocs;
7) What is the default path for storing data in the xampp mysql database? \ Xampp \ mysql \ data;
Reference:
Http://blog.csdn.net/cxwen78/article/details/6847927