Author Archive

  • Migrating static HTML sites into a WordPress multisite

    Migrating static HTML sites into a WordPress multisite

    1. Create a multisite account for the site you are about to import We set up our multisite using subdomains – this is useful for us as some of our sites there really are subdomains of the main site. If you use subfolders, some of the steps below might be different – unfortunately we havent […]

    Read more »
  • Command line: search in long files for lines containing a particular string, and print to another file

    Command line: search in long files for lines containing a particular string, and print to another file

    Good one to use: grep “string_you are_searching_for” file_you_are_searching_in | awk ‘{ print $0 }’ > new_file

    Read more »
  • Drupal Views: selecting number of items via argument

    Drupal Views: selecting number of items via argument

    Steps to reproduce: 1. Add argument Global:Null (it might work with other arguments as well, but this seemed the least intrusive) 2. Go to ‘Specify validation criteria’ select ‘php code’ and add this: $view->set_items_per_page($argument); return true; You don’t need to change anything else in the argument – however in the ‘More’ section it might be […]

    Read more »
  • Useful command line snippets for investigating site downtime

    Useful command line snippets for investigating site downtime

    Look at incoming hosts – can be good for seeing if there is some kind of system abuse (eg ddos) netstat -plan|grep :80|awk {‘print $5’}|cut -d: -f 1|sort|uniq -c|sort -nrk 1 | head Isolate Apache processes by account owner – sometimes it is Apache processes belonging to a particular site that are consuming memory. lsof […]

    Read more »
  • Batch renaming files using command-line find and replace

    Batch renaming files using command-line find and replace

    This turned out to be quite easy: replace ‘old text’ ‘new text’ files-to-replace So for example to change all spaces to underscores in a folder of jpegs, you can cd to the folder and type replace ‘ ‘ ‘_’ *.jpg I did see some other syntax for this online which looked more like sed, so […]

    Read more »
  • Separating a wordpress multisite into individual installations

    Separating a wordpress multisite into individual installations

    We had 2 large sites on the same WordPress multisite, but then we decided to split it up for the following reasons: From a sysadmin point of view, its always better to keep large sites in their own account Easier from a debugging point of view – the simpler the setup, the easier it is […]

    Read more »
  • WordPress-like summaries and Teasers in Drupal 7 and CKEditor

    WordPress-like summaries and Teasers in Drupal 7 and CKEditor

    Over the past few versions of Drupal, there have been quite a few attempts to create a good way of creating page summaries/teasers/excerpts/extracts that you can use on the front page to encourage people to read the article. The version that comes out of the box with Drupal 7 works quite nicely if no text […]

    Read more »
  • Adventures in Drupal 7 Caching

    Adventures in Drupal 7 Caching

    (This post will be updated as we get a clearer idea of what is going on and how all the pieces fit together) We have made quite a few sites in Drupal 7, the largest being http://www.srichinmoycentre.org. Drupal has evolved into a really powerful framework that can enable you to bring together all kinds of […]

    Read more »
  • New Drupal modules by Vasudeva Server

    New Drupal modules by Vasudeva Server

    We are pleased to announce some new Drupal modules we have developed Rearrange Child Pages – allows you to change the order and titles of the child pages of the node you are currently on. This is very useful if you are using Drupal’s book funtionality on a very large site and the books contain […]

    Read more »
  • Domain Administration Helper module released on drupal.org

    Domain Administration Helper module released on drupal.org

    Vasudeva Server are pleased to announce the first of what we hope to be many contributions to the Drupal community – the Domain Administration Helper module. You can visit its page on drupal.org here… Basically, the module allows administrators of subdomains to do admin tasks without requiring sitewide permissions. We developed it for our websites […]

    Read more »