Home > Backend Development > PHP Tutorial > Setting up a PHP development environment—XAMPP installation and configuration Windows

Setting up a PHP development environment—XAMPP installation and configuration Windows

WBOY
Release: 2016-08-08 09:20:41
Original
1978 people have browsed it

Install XAMPP

Go to https://www.apachefriends.org/zh_cn/index.html page to download XAMPP




Open the XAMPP Control Panel

In the XAMPP Control Panel, we can see that the radio button in the Service column is slightly different. "X" means that the corresponding component has not been set as a Windows system service; "Blank" means not Install the component; there is also a "√", indicating that the component has been installed as a Windows system service and can be started.


Modify Apache’s port number

../apache/conf/http.conf file changes port 80 to 82



../apache/conf/httpd-ssl.conf file changes port 443 to 4433



Install and start Service

Just click the "X" in front of Apache and MySQL, and click "Yes" in the pop-up dialog box to set them as system services. Click the start button on the XAMPP control panel to start the Apache server and MySQL server. The default website directory of Apache is..xampphtdocs.


Change MySQL default password

Because the default password of mysql after installing xampp is empty, enter http://localhost:82/phpmyamdin on the browser address, and you can log in to phpmyadmin. Go to the database control panel, and then select the database named mysql, as shown in the figure. It can be seen that in the user table, the password of the root user is empty.


In the SQL option, execute the following code to change the database password:

UPDATE user SET password=PASSWORD('root') WHERE user='root';



Modify the configuration file, ..phpMyAdminconfig.inc.php

file set $cfg['Servers'][$i]['password'] to the corresponding Password is enough.


Copyright statement: This article is an original article by blogger Lang Ya Studio and may not be reproduced without the permission of the blogger.

The above introduces the establishment of a PHP development environment - the installation and configuration of Windows for XAMPP, including aspects of it. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template