Question

I'm running Ubuntu 14.04 (from 13.10) at home on a desktop and for the best part of 12 months my localhost for Drupal 7.27 runs at a 'snails pace' for simple working read/write updates and is unbelievable slow to work with!

What do I need to do to make it work more effectively as a home workstation (desktop or laptop)?

Any advice for a newbie is most welcome to get the best out of open source LAMP webdevsl.

Failing that I'll simply ditch 3 projects worth of 12 months effort and start afresh as a beginner with Django, surely that can't be that slow LOL

Thanks in advance.

Was it helpful?

Solution

There are many ways to speed up Drupal on localhost, and here are some suggestions:

  • Use Memcache

    Memcache is a system that works to speed up virtual private servers by caching server information. The program allows you to allocate a specific amount of the server ram toward caching recently queried data for a certain amount of time. Once the data is requested again, memcache speeds up the process of retrieving it by displaying the cached information instead of generating the result from the database.

    After installing and configuring Memcache, download and enable Drupal Memcache API module

  • Use APC

    The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.

    After installing and configuring APC, download and enable Drupal APC module

  • Use Varnish cache

    Varnish is a web application accelerator. You install it in front of your web application and it will speed it up significantly.

    After installing and configuring Varnish, download and enable Drupal Varnish HTTP Accelerator Integration module

  • Use Drupal Cache Expiration module

    This module provides configurable actions upon events that will expire URLs from caches like reverse proxy caches, internal page caches, etc.This module make more sense when Minimum Cache Lifetime setting is set to a value other than none.

Also, I recommend you to use Zend Server CE instead of default Ubuntu PHP stack.

OTHER TIPS

If it is lampp stack then you can try editing /etc/mysql/my.cnf from

innodb_flush_log_at_trx_commit = 1

to

innodb_flush_log_at_trx_commit = 0

if the above line is not there then you can add it.

This is got from How to improve Druopal Localhost

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top