restart apache server for config code example
Example 1: restart apache
sudo systemctl restart apache2
# or
sudo service apache2 restart
Example 2: restart apache
/usr/sbin/httpd -k restart
sudo systemctl restart apache2
# or
sudo service apache2 restart
/usr/sbin/httpd -k restart