I got around it by creating a new administrator account. Log on/off the new admin account and try the install task again.
If you’re getting the following error when trying to restart Apache server:
NameVirtualHost *:80 has no VirtualHosts
Edit your ports.conf:
and comment out NameVirtualHost towards the top of your config file.
This should work considering all other settings are correct.