Highlight: Ubuntu + Nginx + PHP-FPM + Varnish for WordPress site
The current site is hosted on CentOS 6 using Apache in home lab server, so you may experience slowness due to network limitation. When I was using Apache Bench tool to test the site performance, it can only server 10 requests per second. I’ve tried using Memcache and APC, the performance gain is minimum. After use Varnish in front of Apache server, the site can server over 10,000 requests per second. Here, I am going to setup another test server using Nginx + Varnish to compare with current setup. With Nginx only, it can serve 60 requests per second. That’s 6 times faster than Apache without any cache program. Now, let’s see how much performance Nginx can gain by using Varnish compare to Apache.
mod_pagespeed is an open-source Apache module that automatically optimizes web pages and resources on them. It does this by rewriting the resources using filters that implement web performance best practices. Webmasters and web developers can use mod_pagespeed to improve the performance of their web pages when serving content with the Apache HTTP Server.
First, check which Linux distribution you are using by this command:
cloudtech ~: uname -aLinux cloudtech 22.214.171.124-x86_64-linode10 #1 SMP Tue Nov 10 16:29:17 UTC 2009 x86_64 x86_64 x86_64 GNU/Linux
Second, download the package at this link: mod_pagespeed latest version
Here I am using 64 bits CentOS Linux system, so i ‘ve downloaded mod_pagespeed 64-bit .rpm (CentOS/Fedora)
Third, install the package
rpm -i mod-pagespeed-*.rpm
or follow the instruction in official site. If you cannot install it, try this:
Install and import Google key into RPM, then you can install mod_pagespeed package using yum localinstall command:
wget https://dl-ssl.google.com/linux/linux_signing_key.pub rpm --import linux_signing_key.pub
yum localinstall mod-pagespeed-*.rpm
Check which files you just installed:
cloudtech ~: rpm -ql mod-pagespeed-beta /etc/cron.daily/mod-pagespeed /etc/httpd/conf.d/pagespeed.conf /usr/lib64/httpd/modules/mod_pagespeed.so /var/www/mod_pagespeed/cache /var/www/mod_pagespeed/files
Last, restart Apache to load the new module
cloudtech ~: service httpd restart
Download the latest versionyum localinstall mod-pagespeed-*.rpm to install
Visit your site without mod_pagespeed
Visit your site with mod_pagespeed
Without mod_pagespeed, my site score is 73/100.
With mod_pagespeed, my site score is 81/100.
You can also test your site at ModPageSpeed.com
To help new AWS customers get started in the cloud, AWS is introducing a new free usage tier. Beginning November 1, new AWS customers will be able to run a free Amazon EC2 Micro Instance for a year, while also leveraging a new free usage tier for Amazon S3, Amazon Elastic Block Store, Amazon Elastic Load Balancing, and AWS data transfer. AWS’s free usage tier can be used for anything you want to run in the cloud: launch new applications, test existing applications in the cloud, or simply gain hands-on experience with AWS.
Test environment : cPanel 11.25.0-R46156 – WHM 11.25.0 – X 3.9
CentOS 5.5 i686
1. cd /usr/src/
2. Download ffmpeginstaller 3 series Latest Stable Release at here
Note: ffmpeginstaller 3 scripts will install stable versions of all binaries. ffmpeginstaller version 4 will install all latest dependencies of ffmpeg and mplayer, and also use svn version of ffmpeg and mplayer. Version 4 and 5 may cause problem on your VPS. I recommend you install Version 3. (more…)
A nice bash script from SourceForge to take daily, weekly and monthly backups of your MySQL databases.
– Backup mutiple databases
- Single backup file or to a seperate file for each DB
- Compress backup files
- Backup remote servers
– E-mail logs to you
Here are the steps to run this script on your VPS/Dedicated server: