Hans Salvisberg's blog

Open issues with a newly installed HE Linux L 4.0 VPS

daemon.log:

mod_delay/0.6: unable to open DelayTable '/var/run/proftpd/proftpd.delay': No such file or directory

Fix: create the directory.

Possibly related: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/543506 ("runlevel unknown", #81, #94)

auth.log:

pam_env(sshd:setcred): Unable to open env file: /etc/default/locale: No such file or directory

Fix: create the file.

Blog Topics:

Running a Linux server under subversion

I like putting my servers under subversion control, i.e. treating the entire file system as a "local working copy." That way I can safely try things and be sure that I can go back to a previous configuration. Also, whenever I do some configuration changes (either manually or through a control panel), I can review all the changes, and when I'm satisfied I add a dated entry to a history file and commit / (root).

Workflow

Here's a typical workflow:

  1. Make some changes.
  2. Verify the intended behavior.

Blog Topics:

A Nice Restaurant in Barcelona

PLA Restaurant
Bellafila, 5
http://www.pla-repla.com/
93 412 65 52

Pl. Sant Jaume -> Ciutat -> Bellafila

Blog Topics:

How to Set up a PHP Development Environment for Drupal under Windows

So I bought a new notebook computer, an HP dv5-1250us, which came with the unloved Windows Vista, 64-bit version. I haven't wasted any time on Vista so far, and don't intend to, either. So the plan was to install Windows XP until Windows 7 would be available, but it turns out that the XP installation disks don't have the required SATA drivers. Rather than mucking with custom XP installation disks, I'm going for the Windows 7 64-bit RC now.

Get the Servers Up and Running

Create Subthemes to Keep Garland Customizations Separate on a Shared Installation

If you have Set Up a Single Drupal Installation for Supporting Multiple Virtual Hosts, then you're also sharing the themes. What if you want to make some minor customizations on one of the sites?

As mentioned in Customizing the Drupal Garland Theme, you can unshare the theme by making local copies in each site. But this is exactly what we wanted to avoid in the first place! There is a better way: create a subtheme for each site.

Blog Topics:

Plesk Migration

I've tried moving a Plesk 8.6 installation on SuSE 10.0 to a Plesk 8.6 installation on SuSE 10.3, but this doesn't work (see https://kis.hosteurope.de/support/faq/index.php?cpid=13913 (requires login)).

Downgrading to openssh-4.1p1-10 allows Plesk Migration Manager to work, and to avoid opening up vulnerabilities I've used...

/etc/hosts.deny:
sshd : ALL : DENY

and

/etc/hosts.allow:
sshd : xxx.xxx.xxx.xxx : ALLOW

Blog Topics:

How to Help a Friend Clean up a Virus Infection

Have you already had a friend call you for help cleaning up a virus infection? All the precautions that you apply to diligently maintain the security of your computers are suddenly useless when it comes to dealing with someone else's infected computer.

The web has some great resources available for such emergencies. I'm not trying to add another one here, but rather to just collect a few links that have helped me in this situation:

Blog Topics:

The node_access Table

I'm starting to gather knowledge on how the ACL Drupal module works.

On a fresh install, the node_access table contains one entry:

nid gid realm grant_view grant_update grant_delete
0 0 all 1 0 0

This entry grants view access to all nodes. When you install an access module, this entry is replaced by module-specific node access entries.

Access Denied to Anonymous Users

How to Test Drupal with PostgreSQL

On-line docs for PostgreSQL:
http://www.postgresql.org/docs/8.2/static/index.html

Taken from a post by Barry J.:

I use XAMPP on Windows for development. Here is my process for using PostgreSQL 8.3:

1. Download and run the installer.
2. Uncomment the "extension=php_pgsql.dll" line in Apache's php.ini.
3. Re-start Apache.
4. Change $db_url in settings.php.

Taken from a post by Bill M.:

Once it's installed, there's another step called "initializing

Blog Topics:

Testing Email Functionality

You should always create a test site for testing purposes. If your test site does not have email, but the module you want to test requires it, you have two choices:

  • On a Linux box, see http://drupal4hu.com/node/55
  • On a Windows box, use your ISP's mail server by setting the following values in php.ini:
    [mail function]
    ; For Win32 only.
    SMTP = your.ISPs-email-server.tld
    smtp_port = 25
    
    ; For Win32 only.
    sendmail_from = your.email.address@example.com
    

Blog Topics:

Pages

Subscribe to RSS - Hans Salvisberg's blog