Archive for the ‘administration’ Category

Execute command on every boot

You want to execute a command on every boot but do not want to create an init script? Well, if your *nix system supports cron jobs which is very likely it is your lucky day. Just open the cron file for the user who in whose name the command is supposed to run. crontab -e [...]


Memcache is not cacheing

So you are using memcached to speed up your system. Than suddenly at some point you notice memcache is not helping anymore but is does not cache the part that has the worst impact on your system. That´s what just has happened to me. Why is Memcache not cacheing I asked myself. Well, the default [...]


Use varnishlog to find hosts which cause most hits

If your Varnish powered server is under constant load and you are wondering who causes that varnishlog is a helpful tool. Start off by logging IP addresses for a while. 1 varnishlog -c -i RxHeader -I X-Forwarded-For > varnish.log After you have collected enough information use the following line to find out which IP caused [...]


Useful shell commands: last

Today I will start a new series for linux/*nix newbies called Useful shell commands. Every now and then I will write about one of the powerful commands you’ll find on your shell. I will start the series with a command called last. # last Calling last on your commandline gives you a list of logins. [...]


High available NFS4 server with drbd 0.8, pacemaker 1.0, heartbeat, openais on OpenSUSE 11.1

For my podcast project I got five new root servers which are all connected internally through a switch. Two of the servers are connected directly over a crossover cable. Those two servers have 3 NICs, the other 2 servers have 2 NICs. I share the website’s HTML, images and other resources through the NFS server [...]


php-fpm runlevel start script for OpenSuSE 11.1

Nowadays OpenSUSE comes with almost all packages I need to run a fast and reliable webserver. As I have written before I use nginx and php-fpm for our podcast service. You can get up-to-date packages of nginx through OpenSuSE’s build service. I have not yet found a RPM package of php-fpm though. Therefore I compile [...]


System upgrade openSUSE 11.0 to openSUSE 11.1 with zypper

I had to set up a server. The hoster offers openSUSE 11.0 at the moment but no openSUSE 11.1 yet. As I like to go with the latest and greatest I decided to upgrade the system to openSUSE 11.1 after using the hoster’s installation image for openSUSE 11.0. I searched on the web how a [...]


ejabberd on GNU/Linux OpenSuSE 11.0

I heard about the successful usage of ejabberd from weblin‘s CTO Heiner yesterday at lunch during BarCamp Hamburg 08. I was thinking of deploying jabber services for podcast.de for a while now but couldn’t decide which server to take. I checked the ejabberd website. The software looks promising. So I give it a try. smart [...]


Apache and lighttpd replaced by nginx for PHP application

A while back I wrote an article Switching from Apache HTTP Server to Lighttpd – Installing Lighttpd. Back then I migrated static stuff to lighttpd but left the dynamic stuff (PHP) with Apache. I was never really satisfied with the speed of our system under load. I tried and tried. I optimized a lot of [...]