You're restarting your webserver only to found out you get an error the address is already in use. This could be a configuration issue, as your config files can contain ports they shouldn't.

If that's not the case, make sure port 80 and 443 are not used by any other daemon with netstat:

sudo netstat -tulpn | grep :80

sudo netstat -tulpn | grep :443

If you see there are still programs using the ports, you can just kill 'em. If, for example, it's apache gone rogue, you can do this:

sudo killall -9 apache2

And start your webserver afterwards:

sudo /etc/init.d/apache2 start

React on this article

Enter the code here: