#Check if Apache is installed
$apache2 -v
$/usr/sbin/apache2 -v
#Apache control command
/etc/apache2> apache2ctl
Usage: /usr/sbin/apache2ctl start|stop|restart|graceful|graceful-stop|configtest|status|fullstatus
/usr/sbin/apache2ctl
#List of apache moduls installed
/etc/apache2> apache2 -l
Compiled in modules:
core.c
mod_log_config.c
mod_logio.c
prefork.c
http_core.c
mod_so.c
#Check if mysql is running
/home/pratik> ps -A | grep mysqld
30359 ? 00:00:00 mysqld_safe
30401 ? 00:00:00 mysqld
#MySQL configuration file is my.cnf
#Apache Performance monitoring
http://www.myserver.com/server-status
#Start/Stop/Restart Apache
sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 restart
No comments:
Post a Comment