apache start and stop code example
Example 1: restart apache
sudo systemctl restart apache2
# or
sudo service apache2 restart
Example 2: apache not restart
cd /etc/apache2
apache2ctl configtest
sudo mkdir -p /var/log/apache2/
sudo chmod -R 744 /var/log/apache2/