Apache: NameVirtualHost *:80 has no VirtualHosts error message


Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /homepages/3/d98111892/htdocs/insanelabs/htdocs/wp-content/plugins/ultimate-google-analytics/ultimate_ga.php on line 524

If you’re getting the following error when trying to restart Apache server:
NameVirtualHost *:80 has no VirtualHosts
Edit your ports.conf:
nano /etc/apache2/ports.conf
and comment out NameVirtualHost towards the top of your config file.

This should work considering all other settings are correct.