Apache MySQL restart stop in Ubuntu, Debian, Arch, CentOS and Redhat

Posted under » MySQL » Ubuntu » Apache » Arch » Raspberry Pi updated on 11 August 2024

Apache

If Debian or Ubuntu Service

$ service mysql start
$ service mariadb start
$ service apache2 stop

If Arch, Redhat or CentOS. Apachectl will work on Ubuntu too.

$ apachectl stop
$ apachectl restart 

Restart if Debian

$ restart mysql
$ systemctl reload apache2

If all fails, use systemctl

$ systemctl status apache2
$ systemctl status mysql
$ systemctl reload httpd

For more information on Apache Ubuntu 22.04 config

web security linux ubuntu python django git Raspberry apache mysql php drupal cake javascript css AWS data