Hello,

I have installed Drupal on WAMP server, but it is running very slow, specially the admin section.
It takes about 30-40 seconds to load the homepage of the website when I open it for every first time. And admin section everytime takes to load about 15-20 seconds.

So what I should do to load it faster?
All configuration and versions are given below.

Intel Pentium Dual Core Processor 3.00 GHz
RAM 2 GB
Hard Disk 160 GB
C Drive Free Space 10 GB

Windows 7
Wamp 2.2
PHP 5.4.3
Apache 2.2.22
Mysql 5.5.24
Google Chrome 27.0.x.x

Drupal 7
Modules install are - addressfield, apps, cck, colorbox, commerce, commerce_coupon, commerce_multicurrency, commerce_paypal, ctools, date, entity, entityreference, envolve_chat, facebook_comments_box, facebook_wall, field_slideshow, gtranslate, insert, jcarousel, jquery_update, levelten_apps, libraries, nice_menus, rooms, rpx, rules, simple_gmap, socialmedia, views, widgets, wysiwyg, yr_verdata.

Is it slow for gtranslate and socialmedia module or for any other reasons?

So, can anyone please tell me the solution to make it Drupal on WAMP run faster?

Comments

Damienov’s picture

my dev specs is almost the same as yours if not higher and indeed Drupal development is slow on a windows machine, but quite quick on linux/mac. that said try turning off modules that depends on 3rd party connection (facebook, social media, etc) as it will slow down your D7 more, also check your template and comment out "@import url" if there is any (check the core themes of you're using a sub theme). It will improve the performance slightly.

After that try aggregating your css and js files trough the configuration > Performance and check the improvements (turn it off again and clear the cache if you want to continue to edit/develop). Also have you tried optimizing your php.ini? try the method here: https://drupal.org/node/961012

Also try out Drush for windows for faster module install. Lastly if installing/dual booting/virtualisation to linux is an option for you, do try it out. A bit of an overkill perhaps for some, but it will improve your performance significantly. Hope this helps

voger’s picture

For the very first connection I also experience significant delay. I think it has to do with cache being cold. I had this delay in a remote LAMP server within my LAN and in my local computer running Windows. I don't think you can avoid that initial delay.

Besides that what I did further to improve speed:

I removed every immunization done by spyboot search & destroy. Now my hosts file has only two lines.

127.0.0.1 localhost
	::1 localhost

I use Uniserver as a web server instead of XAMPP or WAMP.

I added the folder where Uniserver is installed plus Apache, MySQL and PHP executables in my antivirus ignore list.

I disabled completely windows defender. That program is not necessary because I use antivirus and I got a performance boost in the whole system just by disabling it.

dalegrebey’s picture

There are a few things you should be aware of:

  • Your Windows hosts file - having a lot of entries in this can slow you down
  • realpath_cache_size in my php.ini - increase this to 24mb or so.
  • Do a minimal install instead and disable core modules: status updates, dashboard, overlay, toolbar, database logging, syslog, statistics, etc as well any 3rd party you are not using - turn these things on only when and if you need them.
  • Convert all your SQL tables to MyISAM.
  • Look at a module such as boost.

That should noticeably help you.

Dale

Stagger Lee’s picture

Nothing of all tweaks i could find helped me. All Drupal installations were crawling slow on localhost, absolute all even those just installed.
Wordpress and Joomla were blazing fast on same localhost servers.

I achieved small improvements tweaking mysql and apache conf files. But then you have one out of the world configuration that you in no way can have on real shared servers. (believe me, some tweaks you cannot have even on dedicated servers)
Not good practice for web developing.
Reverted all to default, except some small limits for heavy Drupal distributions.

I get Drupal to work lightning fast with this Windows 8 tweak, disabling IPV6 in registry:
http://www.techunboxed.com/2012/08/how-to-disable-ipv6-in-windows-8.html

They say it add one half of second per page load. I would say it add 3-10 seconds for Drupal. It was almost not possible to develop Drupal websites on localhost. Dont know why is Drupal sensitive on this, and WP, Joomla not.

troylutton’s picture

I know that this is an old post but I had the same problem and I tried just about everything to fix it.

In my case the problem turned out to be the cron. By disabling this the site ran as expected. The DNS changes also helped.

For more info see my StackExchange post.

http://stackoverflow.com/questions/13148645/slow-drupal-over-localhost-w...