Working with Images and File conveniently in Drupal

So for a long time I have been doing it the hard way writing on my blog. I have been creating a folder on my server for each article and manually uploading my images via ssh. Then copying the path to each image and adapting it to a relative url and publishing. A similar story was with file links. Recently decided to ease my life up a little bit. And really all that I did was really should be part of drupal core.

Configuring required Modules

Anyways following are modules that you require. Use the online below to download, install and enable them via drush.

Suspicious ipv6 activity when only Shorewall ipv4 as firewall active

So I have shorewall, the ipv4 version as the only running firewall on my server. For ipv6, there was a seperate package from shorewall to install and configure. What was worrying me was the activity on ipv6 that I was seeing in monitorix below.


Enabling Alternative Php Cache monitoring for Monitorix securely

To see the apc graph in monitorix securely, just add the following apc.conf file to "/etc/apache2/sites-availiable". Add the following contents to it:

Apache mod_cache and mod_file_cache

Here is another performance tip for your website. Take my blog for example. Examine all the static resources for it, that are possibly present for all of your webpage. In my case I could list them as below:

Analyzing io bottlenecks on linux for my drupal blog

So at this point my setup on the odroid u2 is humming along with memcached and php apc cache. The performance boost from this I described in this article here. At best I was getting 2 request/sec.

Disabling .htaccess lookups and merging to sites conf file for Drupal 7

So I managed to get my server to server almost 2 request/sec with my last incremental configuration tweaks using memcached described here. After memcached I had to analyze my server for bottle necks and io as expected was top of the list with mysql process at the top of io bottle-neck list. This finding I shared in this article here.

My custom rules for mod_security

This article will be place holder for the custom rules I keep adding for my blog based on my access logs. I'll try to keep it upto date as possible. Since I run a drupal 7 install, they should be viewed from that perspective.


Performance Impact of Memcache on Drupal

So in my previous article here, I did a stress test with php's APC enabled and drupals 2 performance modules "adv_agg" and minify. This was test #4 in that article. In this article I will carry over that test and see what new numbers are with memcache now configured for my drupal blog. How to confgure memcached you can read about it in my previous article here.

1-2-3 guide to quickly set up Memcache for Drupal

So this is how you can setup memcache for drupal. This guide is for a single server where memcache and drupal are all co-located. So at drupal's end, execute the following commands :

drush dl memcache -y
drush dl entitycache -y --dev


Next the apt-get command can be used to install the following packages:


apt-get install memcached libmemcached10 libmemcachedutil2 libmemcached-tools php5-memcache

Next hop to your drupal "sites/default/settings.php"

Performance Impact of Alternative php cache and Drupal modules adv_agg and minify

APC graph

So I was about to configure my website with Boost. But before that I thought it might be a nice idea to do another round of stress tests and see the difference in results. With this round of tests, I finally got a chance to analyze the first set of test results that I posted here. The new stress test was done basically with the same Jmeter test plan that I previously posted here using the same set of pages that I stress tested before.


Subscribe to Ahsan's Corner RSS