You are hereHOWTO

HOWTO


Technology HOWTO

Installing PHP on Debian without Apache

When I recently went to install PHP on a server on which I did *not* want Apache, I learned that a simple, "apt-get install php5" will install Apache.

A quick look at the depends, though, and the following sequence worked.

Yes, I'm aware commands can be combined. I chose multiple steps.

sudo apt-get install php5-common
sudo apt-get install php5-cgi
sudo apt-get install php5

The php5-cgi package fulfills the depends that would otherwise be fulfilled by Apache.

-jbn

Custom Authentication for Drupal

I recently had a need to write a custom authentication module for Drupal 6. I struggled to find a good example from which to work. As anyone researching the topic knows, Drupal 6 dropped the couple of hooks that were in Drupal 5 that made custom authentication a brainless activity.

Freeswitch Installation

I recently needed to install Freeswitch for a singular reason: to register to another server when a SIP client registered to it. (What I call "register on register"). As I went, I decided to document the process of installing and configuring.

Debian, locales, and puppet

Having gotten sick and tired of receiving error messages like this:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

I decided to solve the problem once and for all. We use puppet to manage machines, so this should be - and is - straight forward.

/etc/puppet/modules/locales/files/locales.gen:

#
# /etc/locales.gen
#
# managed by puppet
#

Generic Apache Redirect to Add www to Domain Name

It's common to want to add "www" to a domain name, so that users typing in the "non-www" domain name, will get to the right site. It's important to implement this with a 301 redirect so that search engines recognize that there is only one true and real site.

The traditional way to do this is:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^euphline.com$
RewriteRule (.*) http://www.euphline.com/$1 [R=301,L]