Monday, May 12, 2014

Monitor Apache, PHP and MySQL in Ubuntu





1) Check if apache is running in Ubuntu
ps aux|grep apache
sudo service apache restart
 check apache port status (port 80)
sudo netstat -nap |grep apache
2) Check if mysql is running in Ubuntu
ps aux|grep mysql
sudo service mysql  restart

connect to mysql
mysql -uroot -p
 check mysql port status  (port 3306)
netstat -nap |grep mysql
3) Check php
php --version
php --info

4) email server exim
ps aux|grep exim
sudo service exim4 restart
 check if exim port is listening (port 25)
sudo netstat -nap |grep exim
All these four log files are located in /var/log/ 

5) Install webmin for further monitoring 

No comments:

Post a Comment