Sei sulla pagina 1di 10

(http://justlearnwp.

com/)
Menu

Solved: WordPress Running Too Slow On


Localhost
If you are using WAMP server for local WordPress development and WordPress Running Too Slow On
Localhost. You should disable cgi_module. Read tutorial to learn more.

Posted on June 29, 2016 (http://justlearnwp.com/wordpress-running-too-slow-on-localhost-solution/) by Tahir Taous


(http://justlearnwp.com/author/tahirtaous/)
WordPress Tutorials (http://justlearnwp.com/topic/wordpress-tutorials/)
 9 Comments (http://justlearnwp.com/wordpress-running-too-slow-on-localhost-solution/#comments)

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.

310
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 (http://stackoverflow.com/questions/10750964/wamp-is-


running-very-slow)

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.

READ Make Your Site More Secure With WordPress Two Factor Authentication : 11 Tutorials

(http://justlearnwp.com/two-factor-authentication-wordpress-tutorials/)

310
how to Disable Cgi_module In WAMP

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 (http://stackoverflow.com/users/877574/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

xdebug.remote_autostart=0

xdebug.remote_enable=0

Disable your profiller

xdebug.profiler_enable=0

You can see the screenshot below.


310
How To Disable XDebug WAMP Server

Source: StackOverflow (http://stackoverflow.com/questions/10750964/wamp-is-running-very-slow)

Related

How To Install WordPress on WAMP how to install WordPress on windows 20 Free Tools To Setup WordPress
Server In Windows 8 8 using Bitnami Stack Development Environment
(http://justlearnwp.com/install- (http://justlearnwp.com/how-to- (http://justlearnwp.com/wordpres
wordpress-on-wamp-server- install-wordpress-on-windows-8- s-development-environment-
windows-8/) using-bitnami-stack/) setup-tools/)
March 28, 2016 March 25, 2016 December 26, 2016

 WordPress beginner (http://justlearnwp.com/tag/wordpress-beginner/) WordPress Tutorials


(http://justlearnwp.com/tag/wordpress-tutorials/)

About Author: (Http://Justlearnwp.Com/Author/Tahirtaous/)


Tahir Taous
Tahir Taous (http://tahirtaous.com) is an experienced blogger and WordPress users. He loves to write about
Blogging, WordPress, and Theme Development. You can download his free WordPress Theme Development
Handbook (http://justlearnwp.com/download-wordpress-theme-development-handbook/), which reveals
more than 100 tools and resources to learn WordPress Theme Development.
310
View all posts by Tahir Taous (http://justlearnwp.com/author/tahirtaous/)
Previous Most Popular Free Responsive WordPress Themes Next 5 Free WordPress Plugins to Increase Blog Traffic & EMail
2017 (http://justlearnwp.com/most-popular-free- List (http://justlearnwp.com/best-wordpress-plugins-to-
responsive-wordpress-themes/) increase-blog-traffic/)

9 Responses On “Solved: WordPress Running Too Slow On


Localhost”

Loremar Guimarães
March 23, 2017 at 1:01 am
(http://justlearnwp.com/wordpress-running-too-slow-on-localhost-solution/#comment-2632)

Disabling CGI worked for me. It’s running much faster now. I think that I would have to tune it up a little more but disabling
CGI turned admin panel usable again. Thanks!

Reply ↓ (http://justlearnwp.com/wordpress-running-too-slow-on-localhost-solution/?replytocom=2632#respond)

scuzzy (http://appleseedinfo.org)
March 14, 2017 at 4:50 am
(http://justlearnwp.com/wordpress-running-too-slow-on-localhost-solution/#comment-2617)

I’ve had the same problem on Linux. Nothing worked including disabling cgi, tuning databases, etc.
Here’s what did work for me. Running Centos 7.3.
I have multiple vhosts running under Apache 2.4.
WP domain: mysite.org
In /etc/hosts
127.0.0.1 mysite.org
This was slow as heck on a fast computer. I’d tried everything. Then I determined it was a problem was with WP resolving
‘things.’ WP uses locahost.
My IP address on my local network was 192.168.0.106. I then tried that.
Changed /etc/hosts
192.168.0.106 mysite.org
Now WP runs fast on my local test server.

Reply ↓ (http://justlearnwp.com/wordpress-running-too-slow-on-localhost-solution/?replytocom=2617#respond)

Tahir Taous Post author

March 15, 2017 at 4:28 pm


(http://justlearnwp.com/wordpress-running-too-slow-on-localhost-solution/#comment-2621)

310 thanks for sharing your experience.


Reply ↓ (http://justlearnwp.com/wordpress-running-too-slow-on-localhost-solution/?replytocom=2621#respond)

mk
May 8, 2017 at 10:10 am
(http://justlearnwp.com/wordpress-running-too-slow-on-localhost-solution/#comment-2682)

steps:
1. get local ipadress
2. do change on host file
3. change wordpress adress in wp-admin/options-general

*might be that it just feels faster after this but thats also something… :D…

Reply ↓ (http://justlearnwp.com/wordpress-running-too-slow-on-localhost-solution/?replytocom=2682#respond)

Faisal (http://gooeos.com)
February 26, 2017 at 1:23 pm
(http://justlearnwp.com/wordpress-running-too-slow-on-localhost-solution/#comment-2593)

Hi Admin…
after i use google AdSense and analytics code in WordPress My site is slow, and they told me to fix it as below Do you have a
solution to this problem.
Setting an expiry date or a maximum age in the HTTP header
pagead2.googlesyndication.com/pagead/js/adsbygoogle.js (60 minutes)
pagead2.googlesyndication.com/pagead/osd.js (60 minutes)
google-analytics.com/analytics.js (2 hours)
My site: gooeos.com

Reply ↓ (http://justlearnwp.com/wordpress-running-too-slow-on-localhost-solution/?replytocom=2593#respond)

Tahir Taous Post author

March 9, 2017 at 11:57 am


(http://justlearnwp.com/wordpress-running-too-slow-on-localhost-solution/#comment-2606)

Try this free plugin Far Future Expiry Header (https://wordpress.org/plugins/far-future-expiry-header/)

Reply ↓ (http://justlearnwp.com/wordpress-running-too-slow-on-localhost-solution/?replytocom=2606#respond)

LMHT (http://www.tieuthien.com)
December 15, 2016 at 8:46 am
(http://justlearnwp.com/wordpress-running-too-slow-on-localhost-solution/#comment-2515)
310
I still can not fix this problem

Reply ↓ (http://justlearnwp.com/wordpress-running-too-slow-on-localhost-solution/?replytocom=2515#respond)

Kubara
November 14, 2016 at 6:58 pm
(http://justlearnwp.com/wordpress-running-too-slow-on-localhost-solution/#comment-2493)

Thank you!

Reply ↓ (http://justlearnwp.com/wordpress-running-too-slow-on-localhost-solution/?replytocom=2493#respond)

Rasin Bekkevold (http://outsourcingwordpressindia.blogspot.nl/2016/06/wordpress-website-running-


slow.html)
September 26, 2016 at 2:32 pm
(http://justlearnwp.com/wordpress-running-too-slow-on-localhost-solution/#comment-2460)

I found this amazing article (http://outsourcingwordpressindia.blogspot.nl/2016/06/wordpress-website-running-


slow.html). It is related to this article. You must read. Although thank you for sharing your thoughts, this has added to my
knowledge.

Reply ↓ (http://justlearnwp.com/wordpress-running-too-slow-on-localhost-solution/?replytocom=2460#respond)

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

Comment *

Name *
310
Email *

Website

Post Comment

Notify me of follow-up comments by email.

Notify me of new posts by email.

(https://youtube.com/justlearnwp) (http://justlearnwp.com/newsletter/)
 (https://twitter.com/justlearnwp)
 (https://facebook.com/justlearnwp)
 
(http://feeds.feedburner.com/JustLearnWP)

Search … Search

Collection Of Best WordPress Themes


Best Market Place To Buy WordPress Themes (http://justlearnwp.com/wordpress-themes-premium-developers/)
Best Photography WordPress Themes (http://justlearnwp.com/photography-wordpress-themes/)
Free WordPress Portfolio Themes (http://justlearnwp.com/wordpress-portfolio-themes-free/)
Top WordPress Blog Themes (http://justlearnwp.com/best-wordpress-blog-themes/)
Best Premium WordPress Themes (http://justlearnwp.com/best-premium-wordpress-themes/)
30 Creative Design WordPress Themes (http://justlearnwp.com/wordpress-photography-themes/)
Professional WordPress Blog Themes (http://justlearnwp.com/wordpress-blog-themes/)
Top Premium Responsive WordPress Themes (http://justlearnwp.com/premium-responsive-wordpress-themes/)
Best Coming Soon WordPress Themes (http://justlearnwp.com/coming-soon-wordpress-themes/)

310
Download The Fastest WordPress Theme – Jupiter
(http://justlearnwp.com/go/jupiter)

52,000+ users can't be wrong. Join them and download Jupiter today. (http://justlearnwp.com/go/jupiter)

Download Fastest WordPress Theme (http://justlearnwp.com/go/jupiter)

Recent Posts
Best 7 Free WordPress CRM Plugins to Run Your Own Customer Relationship Management
(http://justlearnwp.com/wordpress-crm-plugins/)
Top 10 Best WordPress Themes for Non-Profit, Church and Charity Websites 2017 (http://justlearnwp.com/best-wordpress-
themes-for-charity-websites/)
SEO For Beginners 2017: How to Do SEO YourSelf For Better Google Rankings (http://justlearnwp.com/how-to-do-seo-for-
beginners/)
Hosting a Website – Does Web Hosting Affect SEO Rankings? – 5 Myths Debunked (http://justlearnwp.com/hosting-a-
website-tips/)
Start Growing Your Online Business NOW With these 8 Best WordPress Plugins For Marketing
(http://justlearnwp.com/best-wordpress-plugins-for-marketing/)

(https://share.payoneer.com/nav/dR3L6IDjZGEv
JG-
Zikb6b9SYrso9eQZ2dc4pz8miBqRY7xVI8CoWlX6
310 mhsZ8K15M-ftfHl920Km8H781bHbJ9w2)
Payoneer
(https://share.payoneer.com/nav/dR3L6IDjZGEvJG-
Zikb6b9SYrso9eQZ2dc4pz8miBqRY7xVI8CoWlX6mhsZ8K
15M-ftfHl920Km8H781bHbJ9w2) is an online service to
receive and send online payments. You can withdraw
money with Payoneer master card.

FTC Disclosures
We write about WordPress plugins and themes and some links are affiliate links. We will make money if you buy through our
affiliate links on this website at no extra costs to you.

Theme BleedGreen Developed By Tahir Taous (http://justlearnwp.com/)

Contact Us (http://justlearnwp.com/contact/) Advertising (http://justlearnwp.com/advertising/)

Write For Us – Guest Post (http://justlearnwp.com/write-for-us/)

310

Potrebbero piacerti anche