Inside a terminal window type the following command: 

For RHEL/CentOS/Oracle/Fedora

Stop Apache
systemctl kill httpd
Permanently stop Apache
sudo systemctl disable httpd && sudo systemctl stop httpd

For Ubuntu/Debian 

Stop Apache
systemctl kill apache2
Permanently stop Apache
sudo systemctl disable apache2 && sudo systemctl stop apache2