Setting Up an Amazon EC2 Server Instance for Drupal Hosting

While I get to actually writing this guide, please refer to the sources below in the meantime.

PHP Performance Tuning

In php.ini, enable and increase the realpath_cache values:

realpath_cache_size = 1M

realpath_cache_ttl = 300

Installing and configuring APC (Alternative PHP Caching)

apt-get install php-pear php5-dev libpcre3-dev make

pear upgrade

pecl install apc

Enable internal debugging in APC [no] : no

Enable per request file info about files used from the APC cache [no] : no

Enable spin locks (EXPERIMENTAL) [no] : no

Enable memory protection (EXPERIMENTAL) [no] : no

Enable pthread mutexes (default) [no] : no

Enable pthread read/write locks (EXPERIMENTAL) [yes] : yes

Create the apc.ini file in /etc/php5/conf.d directory, and add:

extension=apc.so

apc.enabled=1

apc.shm_segments=1

apc.shm_size=96M

apc.stat=0

apc.ttl=0

Drupal version: 
Audience: 

Add new comment