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