July 2011

ClamAV update – 0.97.2

There is a update for ClamAV available for download. The current version is 0.97.2. Upgrading is relatively easy and straight forward. All that needs to be done is remove the old version and install the new.

You can check the instructions on what to do here Upgrading ClamAV.

There is no need to reconfigure anything.

ClamAV after upgrading to Lion

Upgrading to Lion damages the ClamAV instillation documented here. Not only are the config files removed, but the virus database is also deleted along with the log files.

Because of the seriousness of the breakage, it is easier to simply install as though you never had ClamAV on your machine to begin with. Simply follow the instructions for Snow Leopard.

Problems after upgrading to Lion

After getting the MAMP stuff out of the way for Lion on my freshly installed VMware based virtual Mac it was time to upgrade my iMac (which I use as my main computer). It all went without any complications (also the blogosphere is quite silent on upgrading woes). First thing I noticed was that my local websites weren’t running and after some examination I found that none of my stuff was working. All the configuration and setup had been removed for MAMP and the mail-server.

So I started recompiling after solving problems with upgrading my version of Xcode. The installer asks you to stop iTunes but it forgets there is an iTunes Helper process still running and you have to quit it manually (e.g. using the Activity Monitor) before it finishes installing.

Everything went all right until I ran into compilation problems with PHP. Which was strange as everything went great on the fresh install of Lion. The error I encountered was:

/Users/richard/DIYMacServer/php-5.3.6/main/spprintf.c:186: error: static declaration of ‘strnlen’ follows non-static declaration
/usr/include/string.h:143: error: previous declaration of ‘strnlen’ was here
make: *** [main/spprintf.lo] Error 1

This is even a bug reported at PHP. To me it looked like there was some leftovers from the upgrade and I decided to wipe all the development stuff and install Xcode fresh. To do that you need to type in the following command:

sudo /Developer/Library/uninstall-devtools --mode=all

This will run for a while, when done re-install Xcode 4.1 and reboot. When your Mac is up and running again re-compile everything again and then it will work again. I’ve got my sites back in running mode again. Tomorrow I’ll start on getting my test mail server up and running again.

This proves again that a fresh install of the OS is much better then an upgrade to get rid of all the unwanted stuff.

First documentation set for Lion

Alright here is the first result of adapting the instructions to Mac OS X 10.7 aka Lion. First some remarks, to get the quickest results I decided to first do everything in a virtual machine as I wanted to take the time to upgrade my desktop. It was remarkably easy to install Lion as a virtual OS using VMWare. First I tried with Virtualbox which works with Snow Leopard but that didn’t work for Lion. So I tried with the current beta of VMWare Fusion which I am currently testing and that one went without any problem. Just do a “Show Package Contents” of “Install Mac OS X Lion” and copy the file “InstallESD.dmg”. Create a new virtual machine and point it to this DMG file for installing and it will install like a regular Mac. If anyone has a regular version of VMWare Fusion 3.1.x can you verify that this works?

Next step was getting XCode on the machine for which I had to use the “App Store” but luckily XCode is again free! Everything installed I was ready to go. One of the things I noticed is that I can install everything in 64 bits without needing to explicitly specifying it which we had to do on Snow Leopard. Also note that there is no more 32 bits on Lion! This is why it won’t run on some of the older Intel Macs.

So if you’ve already upgraded your Mac to Lion or just have bought a new one and need to install MAMP, that part is no finished. Next step is me taking the time to upgrade my desktop and then attack the mail-server documentation.


Update: Just got this in my RSS reader, VMWare 3.1.3 does not support Lion as a guest. The current Beta does so I guess you have to wait till 3.1.4 or join the beta program!

Also found that PostgresSQL 9.0.4 is installed with OS X Lion! There is documentation in /Library/Webserver/Documents and the psql command is available. Let’s see what we can find out more…

Found this in the official Apple documentation What is new in Mac OS X 10.7

Beginning in Mac OS X v10.7, Mac OS X Server ships with PostgreSQL instead of MySQL as its database server. If you are using other software that requires MySQL, you must install it yourself.

New structure, basics done

Here is another update, later then I hoped but still before Lion is released. I wanted to finish the basics on the new installation structure before Lion is released so that I could use them on Lion.

It’s still not complete as there is much ground to cover to get it all done and a personal life that has a tendency to interfere with my ambitions ;-)

As told earlier the new structure means installing everything in “/usr/local/” so that security and regular updates won’t interfere and we can upgrade without worrying if everything will still work afterwards.

Under the skin I’ve also started re-arranging the pages so that there is a more logical structure. You will notice that in the URL’s. You can find the updated documentation here:


I’ve read the recommendations on Lion and it looks like it will be 64 bits from Lion onwards. This means that I can skip the 32 bit instructions which is very welcome as it means less testing.

Last week I also renewed my contract with Macminicolo and added another 2 years hosting with them. Their service during the last 3 years is excellent and I’ve asked them to find me a newer second hand Mac mini to be able to upgrade to Lion on my production server. I’m currently running a CoreDuo mini at their datacenter which in not capable of running Lion. That is the only reason to get a newer mini. In my experience they are almost bullet proof. I still have one of the first G4 mini’s (from 2005) here at home running 24/7 as a test server for Leopard. The only problem I had with it is the hard disk which I had to replace in 2009.

Next Page »