Hans Salvisberg's blog

What Drupal Modules Do I Use?

Whenever I start a new website I think I ought to create a list of the essential modules to get started quickly, but it's so hard to slow down and start keeping records when I could just go ahead and do it... Let's try it anyway!

Default Core Modules

Drupal has a number of required core modules, these are always there. Out of the box it also has the following core modules enabled:

Blog Topics:

Customizing the Drupal Garland Theme

Garland is the nice new default theme in Drupal 5. Here's how to customize it...

Change the Colors

Garland not only looks good out-of-the-box, but it also comes with a number of predefined color schemes and even lets you define your own using the color.module core module:

Miscellaneous Items to Do on a New Plesk Server

In this blog entry I'll collect a few minor items where I feel, that Plesk is not quite up where it should be.

Before Anything Else: Fix SSH

Edit /etc/ssh/sshd_config and make the following changes (in the order of the parameters in the file):

Blog Topics:

Miscellaneous Oddities Surrounding My Drupal Installation

Here I'll collect some minor issues and their solutions, which are often surprising...

Site Logo Color Is Wrong in IE

Drupal comes with site logos in .png format. If I create my own site logos in .png format and try to blend the background, then they look fine in FF, but the background is different in IE. Why does this happen?

The solution is to use .jpg instead.

Blog Topics:

Keep Drupal from Truncating User Names

On some sites with very mixed audiences I try to get people to use their full names as user names. Sometimes, couples share an account, and then I try to get them to use both of their names. This can result in some very long user names, and Drupal has a nasty habit of truncating after 15 characters.

Consider a couple with a user name of "Jane Doe and John Smith" — John probably won't be happy to get truncated...

Blog Topics:

How to Protect RSS Feeds in Drupal

If you reserve part of your site for authenticated users, members, or even more selected groups, and even if you don't, you'll soon find out about a problem with RSS feeds: feeds that are available only when the user is logged in, will obviously not be available when she's not. Nevertheless, she will set her feed reader to access the feed...

Setting up the Drupal cron Job under SuSE 10 / Plesk 8

Drupal requires http://example.com/cron.php being called regularly. You can set this up in Plesk within each site. Plesk will create a corresponding entry in /var/spool/cron/tabs/site_user. The downside of this is that each cron run will produce an entry in the /var/log/messages system log. If you have a couple of sites and each one runs the cron job every hour, then you'll easily end up with hundreds of useless system log entries every day!

Blog Topics:

Enabling "Clean URLs" for Drupal on a SuSE 10.0 / Plesk 8 Box

Everyone and especially the search engines prefer clean URLs, such as you can see on this site. When you originally install Drupal, it uses URLs with a question mark. In the administrative section there's a test for checking whether your web server can support clean URLs. If it can't, here's what to do:

Open /etc/sysconfig/apache2 in your editor, look for the line starting with APACHE_MODULES=, and add rewrite to the list of Apache modules that your web server loads.

Blog Topics:

Set Up a Single Drupal Installation for Supporting Multiple Virtual Hosts

Do you hate redundancy? So do I! Rather than installing and maintaining Drupal and its modules separately for each virtual host, it's much better to install it once and link each domain to the shared copy. Of course, we still want to maintain high security. This blog entry will walk you through installing Drupal 5.1 on a SuSE 10.0 box.

Let's get right to it:

groupadd drupal
groupmod drupal -A wwwrun
groupmod drupal -A psaftp
groupmod drupal -A psaadm

Create a temporary directory for file uploads:

Blog Topics:

How to Install a CPAN Perl Module

Trivial for those who know, but there's a first time for everything.

[EDIT: See Installing CPAN Perl Modules Revisited for a newer take.]

Here's how to install a module from CPAN:

perl -MCPAN -e 'install full::module::name'

The first time you run this, it will answer with

Blog Topics:


Subscribe to RSS - Hans Salvisberg's blog