# CentOS/RedHat sudo service httpd restart # Debian/Ubuntu sudo service apache2 restart
cd /etc/apache2 apache2ctl configtest sudo mkdir -p /var/log/apache2/ sudo chmod -R 744 /var/log/apache2/