If WordPress running too slow on localhost and taking too much time to load. You can fix this issue very easily.
Solution 1: Disable CGI_module in Wamp’s Apache server.
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.
Cgi_module is responsible for execution of third party cgi scripts.
Solution 2: 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 profiller
Solution 3: Update the version of PHP
YES, If any of the solutions do not work for you then probably the php version is making an issue here.
Go in wamp toolbar in your task bar and the go to php>version>select the latest one.
Hope it helps!
Shoot you questions in the comments section below.