Various problems encountered again xampp installation summary

Before installing various types of PHP integration environment too, such as what thinkPHP, phpstudy, xampp about five kinds of it, but after reinstalling the computer system used no how, and now because of business needs to be re-developed in PHP, it is going to install a xampp , is a summary of various problems when installed, note, when installed xampp, my computer has a mysql

1. Download and install:

 

 

 2. The next step on the line all the way to no brain:

 

 

3. Open xampp control panel:

 

 

 4.

To modify the Apache port number

      ../apache/conf/ http.conf file to modify the port 80 8008

 

 

 

All 80 ports in the httpd.conf modified to 8008, if not modified, will conflict with the default port 80, in severe cases may cause the browser to not work properly. (Note: There is no change Apache port when using http: // localhost access xampp home page; after changing, assuming 80 to the 8008 use http: // localhost: 8081 visit xampp home page, other php under xampp also access such)

 

 

 

 

 

 /apache/conf/httpd-ssl.conf file to modify the port 443 4434

 

 

 

 

 

 This time will be normal start Apache:

 

 

 5. Configuration mysql

 

 

 The my.ini in 3306 was changed to 3309 (if 3306 is not a conflict, you can not modify)
the my.ini change in the character set utf8, the original document already, but need to uncomment (if not configured utf8, removed Chinese is garbled).

 

 

 

In addition, MySQL database also needs to set the character set the default character set is latin1, the database will result in Chinese garbled, should pay attention to the use of utf8 character set when creating databases and tables.

Click the start button on the XAMPP Control Panel, start the Apache server, MySQL server, Apache default web directory is ... \ xampp / htdocs
 6. However, because before I installed mysql, mysql has been a problem occurs not start:

 

 

 Point three times has not started,

7. Then take a look at whether the original mysql running, running on the need to stop it:

 To Control Panel -> Services to stop mysql service.

 

 

 

Because the computer already exists mysql, so when you start XAMPP default before starting the installation of mysql. It is necessary to modify the default path mysql start. Hold the window + R input regedit. HKEY_LOCAL_MACHINE -> SYSTEM -> CurrentControlSet -> services -> MySQL modify the path.

 

 

 My previous path

"C:\tool\mysql\mysql1\bin\mysqld" --defaults-file="C:\tool\mysql\mysql1\my.ini" MySQL

So now instead of the path:

c:\learning\php\xampp\setup\mysql\bin\mysqld.exe --defaults-file=c:\learning\php\xampp\setup\mysql\bin\my.ini mysql

Pay attention to see how I changed my xampp installation path is: c: \ learning \ php \ xampp \ setup \

XAMPP is already being given at the same time gives the desired path, copied on the line:

 

 

This is the correct path.

8.

phpmyadmin defined in the profile is used to control the connected users failures 

At the same time due to problems connecting to the database, I also modified,

 

 And later changed it back.

9, finally, modify the default MySQL password (here do not have to change your password, because after some people change the password, the latter operation will be some problems, so it is best not to modify the oh)

phpMyAdmin operation and connect to the database via a database interface or through doc mysql client interface control.
According to the result of the default installation, MySQL without a password, set the password, you can start apache and mysql in xampp, set a password for mysql.
In the browser, type http: // localhost: 8008 / dashboard / , open the local administration page.

 

 

Click on the top right corner of the "phpMyAdmin", enter the database management page. .

 

 Open user accounts, modify permissions for the root user

 

 Open to change the password, set a password for the root user

 

 Open xampp, modify the database password in config.inc.php ([ 'password'] = 'your password')

 

 

 

 

 

 

 

10. The final result:

 

 

 

Guess you like

Origin www.cnblogs.com/zhedingbingqin/p/12465234.html