I have been using WAMP server for a long time to set up local WordPress installations, Local development Servers like WAMP, XAMPP and Bitmami makes is very simple and easy to build WordPress themes, plugins and Websites for customers.
WAMP, XAMPP and Bitnami are free softwares. You can set up a local development server very easily with these awesome free products. I like to use WAMP, because I can set up multiple local WordPress installations.
You can also use XAMPP or Bitnami, both are awesome products. In this article, I am going to share few tips for WordPress developers to make WordPress load faster on localhost.
If you are using WordPress and WAMP server for local development and localhost takes too much time to load your site. You can very easily solve this problem.
especially, If WordPress running too slow on localhost and taking too much time to load. You can fix this issue very easily.
NOTE: Solution 1 worked for me and after disabling cgi_module, local WordPress website was very fast.
You can also read the original thread at stackoverflow
1. Disable cgi_module in WAMP
The solution that worked for me was to disable cgi_module. Use one of these methods:
Method 1: Right-click on WAMP > Apache > Apache Modules> uncheck “cgi_module”
Method 2: Edit httpd.conf and disable the loading of the CGI module by commenting this line:
LoadModule cgi_module modules/mod_cgi.so
Commenting would be just adding a # in front, like this:
#LoadModule cgi_module modules/mod_cgi.so
Restart the Apache service and you should be good to go.
See the screenshot below.
2. Disable XDebug
It was PHP itself where the bottleneck was occurring. I disabled XDebug and my page-load time went from ~1200ms to ~275ms. That was where the biggest single gain occurred, by far. Turibe
How To Disable XDebug
If you are using WAMP server, left click on WAMP Server in System Tray, Go to PHP > php.ini. open this file in text editor, Search for XDEBUG and add following 3 lines.
Set xdebug autostart to false
Disable your profiler
You can see the screenshot below.