Category Archives: Optimize

Monitor linux services using bash script

# Vi #!/bin/sh run=`ps ax | grep /usr/local/apache/bin/httpd | grep -v grep | cut -c1-5 | paste -s -` if [ “$run” ]; then echo “apache is running” > /home/admin/check_httpd.log else /usr/local/apache/bin/apachectl -k restart mail -s “Apache server restarted … Continue reading

Posted in Apache, Linux, Optimize, Shell Script | Leave a comment

optimizing apache mysql php with low memory server

Don’t run X, shutdown all unnecessary services, and compile Apache, MySQL, and PHP with only essential functionality.   Apache The biggest problem with Apache is the amount of ram is uses. I’ll discuss the following techniques for speeding up Apache … Continue reading

Posted in Apache, MySQL, Optimize, PHP | Leave a comment