Home > Article > Backend Development > An example of wamp's php being particularly stuck in the local development environment
This article mainly introduces an example of wamp's php being particularly stuck in the local development environment. It has a certain reference value. Now I share it with you. Friends in need can refer to many suggestions on the Internet
For example, after enabling APC and Zend Optimizer, some people say that the disk is full, some say that the access_log file is too large, some say that there are too many contents in the hosts file, and so on. I have tried it, but it doesn't matter. After using it, I found the cause and the solution was ridiculous.
Modify the database configuration file of the php website and change localhost to 127.0.0.1
Yes, you read that right. That's it. Because your localhost is likely pointing to an ipv6 address.
Just modify the database configuration file. Don’t bother anymore. Did you find that you suddenly went from a slow speed of 6 to flying?
The above is the detailed content of An example of wamp's php being particularly stuck in the local development environment. For more information, please follow other related articles on the PHP Chinese website!