To see if Apache is running you type
ps ax | grep httpd in the Terminal. To stop Apache you can type
sudo kill with the first process number. If this does not stop all processes of Apache you should repeat this for all process numbers.
Ralf
- Code: Select all
iMac:/ krause$ ps ax | grep httpd
642 ?? Ss 0:00.56 /Applications/XAMPP/xamppfiles/bin/httpd -E /Applications/XAMPP/xamppfiles/logs/error_log -k start -DPHP
643 ?? S 0:00.00 /Applications/XAMPP/xamppfiles/bin/httpd -E /Applications/XAMPP/xamppfiles/logs/error_log -k start -DPHP
645 ?? S 0:00.02 /Applications/XAMPP/xamppfiles/bin/httpd -E /Applications/XAMPP/xamppfiles/logs/error_log -k start -DPHP
646 ?? S 0:00.01 /Applications/XAMPP/xamppfiles/bin/httpd -E /Applications/XAMPP/xamppfiles/logs/error_log -k start -DPHP
647 ?? S 0:00.01 /Applications/XAMPP/xamppfiles/bin/httpd -E /Applications/XAMPP/xamppfiles/logs/error_log -k start -DPHP
648 ?? S 0:00.00 /Applications/XAMPP/xamppfiles/bin/httpd -E /Applications/XAMPP/xamppfiles/logs/error_log -k start -DPHP
649 ?? S 0:00.03 /Applications/XAMPP/xamppfiles/bin/httpd -E /Applications/XAMPP/xamppfiles/logs/error_log -k start -DPHP
656 ?? S 0:00.01 /Applications/XAMPP/xamppfiles/bin/httpd -E /Applications/XAMPP/xamppfiles/logs/error_log -k start -DPHP
657 ?? S 0:00.01 /Applications/XAMPP/xamppfiles/bin/httpd -E /Applications/XAMPP/xamppfiles/logs/error_log -k start -DPHP
658 ?? S 0:00.01 /Applications/XAMPP/xamppfiles/bin/httpd -E /Applications/XAMPP/xamppfiles/logs/error_log -k start -DPHP
659 ?? S 0:10.27 /Applications/XAMPP/xamppfiles/bin/httpd -E /Applications/XAMPP/xamppfiles/logs/error_log -k start -DPHP
704 s000 R+ 0:00.01 grep httpd
iMac:/ krause$ sudo kill 642
Password:
iMac:/ krause$ ps ax | grep httpd
708 s000 R+ 0:00.00 grep httpd
iMac:/ krause$