Use sudo for restarting apache2 service.