Fedora 17 32-bit – not a bad setup

Fedora 17, 32-bit, is working out pretty well as a screw-around LAMP server. I have yet to try mail. Anyway, it does have some quirks…..here’s a short list, from memory:

  • Apache, invariably, has to be installed twice. It’s crazy, but it always compiles fine the second time around.
  • Compiling any version of mod_perl causes Apache to throw a segmentation fault when the server tries to run. The fix is as follows:
  • First, do yum -y install httpd. Modules from the binary can be found at /usr/lib/httpd/modules. However, mod_perl is not installed by default. You will then need to do yum -y install mod_perl. Now, just symlink the mod_perl.so to your compiled Apache. The exact rpm which gets installed is mod_perl-2.0.5-8.fc17.i686. Why this works…..I have no idea.
  • Somewhat curiously, considering Fedora is a desktop distro, MySQL binaries get installed as part of the core system. This, of course, wreaks havoc on a compiled MySQL. Also, installing just mysql-devel installed the server and one other binary. I would remove these before compiling anything, and, edit out any call in the scripts which adds mysql-devel
    rpm -e --nodeps  mysql-5.5.32-1.fc17.i686
    rpm -e --nodeps mysql-libs-5.5.32-1.fc17.i686
    rpm -e --nodeps  mysql-devel-5.5.32-1.fc17.i686
    rpm -e --nodeps mysql-libs-5.5.23-1.fc17.i686
    rpm -e --nodeps mysql-5.5.23-1.fc17.i686
    rpm -e --nodeps mysql-embedded-5.5.23-1.fc17.i686
    rpm -e --nodeps mysql-server-5.5.23-1.fc17.i686
    rpm -e --nodeps qt-mysql-4.8.4-17.fc17.i686
  • Fedora has a quirk with rc.local. You need to add sleep 4 (or some other value) at the top of the file – otherwise, shit doesn’t start.
  • Disable the firewall….
  • Do yum -y install system-config-network.


As far as I know, this should work


This has been a nightmare, so far. I would look at the scripts that I’ve edited and update this page. Simple mail – without qmail-scanner, is working. Starting daemontools is weird, you have to use an updated version of courier-authlib and courierpassd. You have to create a directory manually, while compiling Qmail, at /var/qmail/alias (as I recall – the alias directory). For whatever reason, it will not be created by the script (????). It just says “cannot create directory”. Hmmm – what else…? Here are a few tips:
Top of Qmail install….

mkdir -p /var/qmail/alias

cp ../courier-authlib_0.63.0.orig.tar.gz /usr/local/src
cd /usr/local/src
tar xvf courier-authlib_0.63.0.orig.tar.gz >/dev/null
cd courier-authlib-0.6*

make clean

./configure --prefix=/usr/local/bin --exec-prefix=/usr/local/etc --with-authvchkpw
 --without-authldap --without-authmysql --disable-root-check --with-ssl
 --with-authchangepwdir=/usr/local/libexec/authlib --with-redhat
make && make check
make install-strip && make install-configure

echo ""
echo "-----------------------------"
echo "  Install courierpassd.      "
echo "-----------------------------"
echo ""
cp courierpassd-1.1.2.tar.gz /usr/local/src

#cp /usr/local/src/mail/courierpassd-1.1.0-RC1.tar.gz /usr/local/src
cd /usr/local/src
tar zxvf courierpassd-1.1.2.tar.gz >/dev/null
cd courierpassd-1.1.2

make && make install


/command/svscanboot &
Do NOT comment out this command in /etc/inittab:


AND….put this in /etc/init:

### start of /etc/init/svscanboot.conf ########
start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5
stop on runlevel 0
stop on runlevel 1
stop on runlevel 6
exec /command/svscanboot
### end of /etc/init/svscanboot.conf ######## 

Partial Mail Script

I think THIS should work not includding Qmailscanner, etc. – basic qmail