Win apache under the home page open slow solution

has been busy installing server systems for the past few days, and has never been in touch with a server, a virtual host or a shared computer before. System providers are configured, as long as the upload files, you can run the web site. But the past few days or first contact. I chose the system is win2003+apache+php+mysql+zend+phpmyadmin., it is convenient to find a lot of installation tutorials, according to instructions, installation is not difficult. The problem is some trivial places that are not very clear, and make with it.

, but upload website program, install, import data, found the home page is very slow, about 3 seconds after the home page all loaded finished, and the other pages are fast. Search for a long time, check the configuration can not find the reason.

in the end what is the reason? Hard to find, suddenly thought of the web directory in the index.html file and index.php file, two exist. Then the Apache server which is read first? If it is to read the index.php, because the index.php is installed, since the installation had not executed index.php file, then go to the index.html file, then the read time will cause the page slow? I try the default page file sorting to index.html index.php, because the site is the PHP program, only to the two page document, so directly to the other default page file names. Indeed, web page open speed with the same page.

summary: win+apache system website home page open speed ultra slow solution: set default home page file for your web site, default home page file for the first.

Leave a Reply

Your email address will not be published. Required fields are marked *