The goal of this laboratory test is to evaluate speed-up solution for already mounted clean, by default wordpress CMS platform. The measures were made by custom script for Linux operating system, in our case the server side is Ubuntu server 10.04 LTS running on 32 bit system with 512MB Ram and testing platform Fedora 14 for more details see section appendixes.
The laboratory task is to assist anyone else to be able to perform optimization in easy meaner to their blog, homepage, magazine, etc. without any advantage of technical knowledge.
Presenting stepwise solution with installing firstly wordpress optimization cache plugin, secondary installing PHP solution for increasing the acceleration performance of the server and changing the permalinks settings to the CMS platform for higher optimization. All of the above solutions are free open source, and are taking care of the low budget.
In addition providing measurement results with different scenarios will help us to get wide picture of how affective was optimization.
Optimization of the access to wordpress CMS platform is done in behalf of three different scenarios have been proved while performance is getting slightly higher. Test script is measuring the response time of the link provided and it is recording the results in a text file. Which contains the three attends respondent time of the server. For each method we will provide the results in analyses section.
The following steps should be done on the server side.
Installing procedure [WP-Super-Cache Installation], first method of wordpress plugin: WP Super Cache Version 0.9.9.9
In wordpress administration link: http://192.168.56.102/wordpress/
wp-admin, log in with the credentials, from the panel select Plugins -> WP-Super-Cache -> Activate. After the activation is done, go to Settings -> WP-Super-Cache, on the first tab activate the cache by selecting the On cache and on the Advance tab select only the “(Recommended)” settings. After your done, select Update Settings and on the bottom of the page you can see a red text that needs to be copy in one of the files that is located on the server. Connect to your server by FTP client and locate the .htaccess file on the wordpress directory and open it and paste the following lines and save the file:
The second approach is to install an PHP accelerator and optimizer [EAccelerator Installing from source]. The main goal is to increases the performance of PHP scripts by caching them in their compiled state. Which will augment the acceleration applied with method 1.
Therefore, please follow the steps to install from source code eAccelerator .
After you have completed the above steps it is good way to test the php if the eaccelerator is working and correctly installed. In any case, please create a file called info.php on your wordpress directory with the following code inside:
Access the link to your server vie the link http://192.168.56.102/wordpress/info.php. If you see the configuration information and details of PHP, the quickest way is to search for eaccelerator, and if the result is positive, most lightly you have installed eaccelerator correctly.
After we have completed the first and second methods it is time to grow the interactiveness of our wordpress project. Therefore, we will change setting to wordpress configuration where will speed-up the performance [Using Permalinks]. If can still add more optimization and acceleration applications, yet this laboratory report is performed only with three easy and maintained steps.
Please log in to the wordpress administration panel, and on Settings -> Permalinks select Default. After the step is done, then we need to edit the .htaccess file and add the following lines at the end of the file and please save it:
After completing each one of the method we should perform analysis of the system, were it will provide results of performance speed and can compare it if it is utter to improve the effectiveness of wordpress. Please refer to the appendix 3 to get the code of the script.
Meanwhile the below show the results served pages per/second with three sets from the automatically created file from the custom script, named results_lab2.txt.
|WP WP-super-cache + eaccelerator||26.48||44.34||45.68||38.83|
|WP WP-super-cache + eaccelerator||148.46||173.03||132.57||151.35|
|.htaccess default permalink + wp-super-cache + eaccelerator||158.57||1734.11||117.03||136.57|
From the analysis above we can see that performance has increased and wordpress project is more affectively respondent to our needs.
Illustrations shows that wordpress as a default setting, clean installed and configure response with 3.15, 3.70 and 3.84 pages/per-second, which is not good enough to satisfaction. Similar to, after installation and configuration of wordpress plugin WP-Super-Cache we that notice that the performance slightly has grown but still the performance doesn’t satisfied higher. However after implying the second method, installing eaccelerator the results drastically increased. From the above illustration we can see that the different methods produce different set results. Thus increasing changes performing different methods vs sets of pages/per-second are specified in the illustration 1.
Finally the results were expected and demonstrating example how we can increase the addictiveness of wordpress performance and increase the respondent time pages view per/second.
However, if we need to get higher effectiveness and response time for wordpress than should consider apply nginx server and third party projects, applications to increase the optimization of wordpress. For instance good tutorial is on following blog [Howto hginx+php].
Appendix 1 is for installation process of Ubuntu Server 10.04 LTS and wordpress, mysql installation, other appendix 2 is for virtual machines configuration. The last appendix 4 is the custom script that will help us to perform the analysis of the system.
- Installation media: Ubuntu 10.04 LTS 32bit iso image;
- HW: Virtualbox, 1CPU 32bit, 512MB RAM, 8GB HD (dynamic allocation);
- NIC1 NAT;
- NIC2 host only (for ssh and http access from host);
- Language used in installation process: English and country Estonia;
- Keyboard Layout English;
- Hostname: pece
- Partition methods: Guided, use entire disk
- Username: pece
- no http proxy
- Default applications
- sudo apt-get install lamp phpmyadmin
- wget -c http://wordpress.org/latest.tar.gz
- tar xvjf latest.tar.gz
- sudo cp wordpress /var/www/wordpress
- sudo nano /var/www/wordpress/wp-config.php
- Change the settings to your needs
Ubuntu Server 10.04 LTS 32bit – Server
- Base Memory: 512 MB
- Acceleration: VT-x/AMD-V, Nested Paging
- Display – Video memory: 12 MB
- Storage: SATA Controller, Port 0: 8 GB
- Adapter 1: Intel PRO/1000 MT Desktop (NAT)
- Adapter 2: Inter PRO/1000 MT Desktop (Host-only adapter, „VirtualBox Host-Only Enternet Adapter“)
Security Fedora 14 32 bit – Client
base Memory: 512 MB
Acceleration: VT-x/AMD-V, Nested Paging
Display – Video memory: 12 MB
Storage: SATA Controller, Port 0: 8 GB
Adapter 1: Adapter 1: Parvirtualized Network (NAT)
Adapter 2: Adapter 2: Inter PRO/1000 MT Desktop (Host-only adapter,„VirtualBox Host- Only Enternet Adapter“)
File called lab2_test.sh. Content of the file:
WP-Super-Cache Installation: WP, Installation, 2011, http://wordpress.org/extend/plugins/wp-super-cache/installation/
EAccelerator Installing from source: eAccelerator project, Installation from source code, 2011, http://eaccelerator.net/wiki/InstallFromSource
Using Permalinks: WordPress, Using Permalinks, 2011, http://codex.wordpress.org/Using_Permalinks
Howto hginx+php: joneslee85, Howto nginx + php5 + mysql + phpmyadmin + ubuntu shortest setup, 2010, http://joneslee85.wordpress.com/2010/02/28/howto-nginx-php5-mysql-phpmyadmin-ubuntu-shortest-setup/
 eAccelerator - http://eaccelerator.net/
 Nginx Inc – http://nginx.net/