Search form


WordPress: Installation and Performance

This article describes some of the basics on installing and running WordPress to maximize its performance. The following scripts and text generally assume Debian/Ubuntu, so substitute Red Hat, Arch, etc. as needed.


If you're less lazy than I am, you could combine the whole install routine into a single Bash script, and make it compatible with multiple distros, something like:

Drupal Module Development Tutorial

On my Drupal 7 site here, I wanted to create a method of automatically injecting my Google Ad banners on all content pages before the Disqus comments thread. You could do this manually, say by adding a text field to your basic page content_type with a default value of all the Google Ads JavaScript, but this is clumsy: it clutters up your content pages, and it doesn't retroactively update any existing pages. No, this is a good time to make use of Drupal's ability to modify content dynamically using its hooks API in a simple custom module.

Install the APC Opcode Cache

Note: This is an old article, and the APC Opcode Cache is now abandoned. Strongly consider installing Zend OPcache instead. APC is now effectively unsupported, although you can still install and use it. Furthermore, OPcache is included in the PHP core as of PHP 5.5, and OPcache is also available and fully supported for PHP versions going back to 5.2. The APC user cache can be installed as APCu if you need its data store functionality.

Drupal 7 File Descriptions

I needed to increase the maximum length of the Drupal 7 file description field that appears when you enable the File module and allow uploads in nodes. By default, the file description field restricts input to 128 characters.

The Drupal 7 File Description Field

This is set in in the File module in core Drupal:


Subscribe to RSS - PHP