Posts from January 2012

How to restart Centos Apache and MySQL

Command line as follow: /etc/init.d/httpd  restart /etc/init.d/mysqld restart Or serice httpd restart serice mysqld restart ————————————– Import Database dumps 1) mysql -u root -p -h[…]

How to do a quick A/B test in commandline

# ab -n 100 -c 10 http://www.yourwebsite.com/index.php ————————————– Benchmarking www.yourwebsite.com (be patient)…..done Server Software: Apache/2.2.17 Server Hostname: www.yourwebsite.com Server Port: 80 Document Path: /index.php Document[…]