Apache 2 and mod_auth_pam

I\’ve been fighting today with Apache2 and mod_auth_pam which didn\’t want to go well with me. Finally I found this nice post which gave me almost full solution. The only thing to do is to give apache somehow access to read /etc/shadow (for example by chgrp apache /etc/shadow && chmod g+r /etc/shadow).

If you have some better ideas on how to make apache 2 to authorize system users, you are welcome :)

WordPress upgrade to version 2 (part 2)

Ok, it seems that I have managed to finish upgrading to WP2. My theme was not working because I have removed gallery plugin and I had function call to this plugin from the header so it was not loading. I have also removed many other plugins like weather forecast, textile and other stuff which I was not using or which I obsolete with the new W2 (like editor).

All important plugins that I need a working fine with the new WP, including tags, threaded comments, comment quick tags, adsense-delux and others.

If you notice any misbehavior of the blog, please let me know, but I hope that things will go fine and that I will not have any problems (kinda dream after any updates :-] )

Since my server is fine now as well, I hope that the site will be up all time and that I will manage to find time to leave posts here. You won\’t believe how much I was missing the blog for all the time it was offline.

WordPress upgrade to version 2

Since I am doing lots of updates here and there, I decided to update the WordPress as well.

The update went fine, but some stuff is not working (like my theme :[ ) and I still need to tweak stuff around, but I hope I will manage to reconfigure the stuff to work with WP2 since I like more (at least for the good editor, AJAX and inline uploads).

IBM ThinkPad

Recently I borrowed an IBM ThinkPad 390X for doing some small perl-for-web stuff on it. It is quite an old model with 500MHz CPU, 64MB of RAM and 11 GB of HDD. I added some more RAM so now I have 64+128 MB and this was the max I could do to improve the machine.

I have installed the Fedora Core 4 (custom install), booted up and started to look for some X window manager to work with, because I do not really like gnome a lot and KDE was a bit luggy. After looking on enlightenment, afterstep, fluxbox, FVWM and IceWM and stopped on the last one since it was fast, easy to set up, quite customizable, but not complicated. Since I really like some fancy stuff, I needed some nice terminal emulator which can support transparency, unicode and have tabs (although the last one is not so important, I really like when terminals do have such a feature). Looking here and there I tried many existing products including xterm, eterm, aterm, rxvt, mrxvt, konsole and gnome-terminal. All of these were either heavy or did not work as I wanted them to. Finally I found a project called \”Terminal\” which was an attempt to create something similar to gnome-terminal, but lighter and which would not require you to install the Gnome at all. I would say this is an amazing piece of work. I has all of the features I need, it is fast (a bit slower than xterm, but much faster than my default emulator konsole [from KDE]) and it is quite customizable as well so after 3 minutes of working around I almost didn\’t feel the difference between it and konsole I used to.

Next task was to find browser and email reader. For browsing I tried mozilla, firefox, dillo and links (with -g for X). I stopped on using firefox (the 1.5 is pretty fast) and links -g for for viewing my ebooks (which are in HTML). For emails I usually use kmail (or kontact package with all it\’s benefits) but it was too heavy to use it here so I decided to use thunderbird. I could also use mutt, but since all my mail is on two IMAP servers and I wanted to have it offline synchronized as well, I went to thunderbird which can do this job out-of-the-box instead of spending lots of time on setting offlineIMAP stuff and then binding mutt to it.

The only small part of the software I am missing now is some light office suite which can work with M$ Office files in the same good way OpenOffice.org can, so I am still using OpenOffice.org which is a bit heavy for my hardware and it takes it almost a minute to start up and then another half of it to load the document I need.

Anyway, I am very glad to see such a good working station for me, especially after noticing the label \”designed for M$ Win 98\” and imagining what I would do on the default OS coming with this laptop :)

Upgrading the server

I am in the process of upgrading (actually replacing) the server now. The old one is full and overloaded as well as outdated and has lots of misconfiguration since it was my first ever production server setup (so I didn\’t know much about things I was actually doing) and then I didn\’t have much time to fix things up.

Since I got a new HP Compaq ML110 (G3) machine I started to slowly moving to it. Hopefully I will finish with the transfer in a week and things will get much better.

Job Done:

  • Mail server moved (using Exim as MTA and Dovecot for IMAP). I have set up maildirs instead of mailboxes this time and I see the great improvement in speed and resource consumption now.
  • Web server is partially moved (some of the web-sites are not here yet)
  • MySQL server is partially moved (again, not all of the databases are here)

To Be Done:

  • Finish with Web server and MySQL
  • Move FTP
  • Move Samba (domain controller role) with all the relative stuff
  • Some additional configurations

Improvements:

  • The overall hardware is now much better
  • Capacity of the new server is more than 3 times bigger
  • Fresh software (the old machine was outdated and I could not update it a lot because of a mess around. And I was too lazy to fix the mess)
  • Better configuration and arrangements of the stuff.

to be continued…