Portal Home > Knowledgebase > Articles Database > Server optimization for wordpress !!
Server optimization for wordpress !!
Posted by jazib, 08-03-2015, 10:27 AM |
We're going to install wordpress on freshly deployed Server. Is there any guide to optimize server to speed up wordpress sites load time ? Maybe some caching mechanism to speed up php and static requests?
Thanks in advance.
|
Posted by Srv24x7, 08-03-2015, 10:50 AM |
Hi,
You can installed WordPress plugins for this like WP total cache, etc. A new server has very little to optimize. You have to use it for some time and then analyze it to get perfect result of what optimization needs to be done.
|
Posted by qlpqlp, 08-03-2015, 11:54 AM |
Get a lot of ram, install Varnish to cache all dynamic content, and also use nginx to process all static content (images/js/css) files it will help you a lot
Forgot to mention, put MySQL in a diferent drive of your /home/, use SSD if you can, only for MySQL
|
Posted by CharlsJoseph, 08-03-2015, 12:37 PM |
Hello,
If you are expecting high connections towards your website the it is better to go with litespeed or apache with nginx. Also it is good to use SSD drive for mysql.
|
Posted by Newton Faraday, 08-03-2015, 03:10 PM |
Hi jazib,
WordPress blogs can be extremely resource intensive if you happen to experience a surge in traffic. Poorly implemented WordPress setups can place a high load on webservers.
Here are some tips that can help you make your WordPress install more stable:
- Use WordPress super cache plugin as the number one thing you can do to improve WordPress performance is to install a page cache. WordPress super cache plugin is an extensive modification of the WP-Cache plugin. The WordPress super cache plugin serializes your posts to a file on disk and later spits them back. It also knows how to update itself when comments are received, so your site is always the most up to date. This plugin ensures a stable and responsive wordpress install.
- WP Built-in object cache is the default installation of WordPress and can be used to cache database queries. Less database queries = less resources are used. Add the following line to your wp-config.php file: // Enable the WordPress Object Cache: define(ENABLE_CACHE, true);
- Minimize the number of HTTP requests - Limit the number of files required to display your website
- Optimize and correctly display images - Make images as small as possible and don’t require the browser to resize them
- Gzip and compress components - Compress files at the server level before sending them to browsers
Newton
|
Posted by ZonedHost, 08-03-2015, 03:44 PM |
Don't forget to also Harden your wordpress install. iTheme Security plugin and Anti-Malware plugins are a useful addition.
|
Posted by UNSYS, 08-04-2015, 12:04 AM |
This is too vague question.
Server optimization for WP (or in general) depends on lot of things. No one can here give you any answer without having some actual info. You didn't mention server spec / any control panel (cP/Plesk etc) or custom setup / hoe many sites / traffic etc etc.
I don't get why people say WP is resource intensive. May be they are comparing it to simple html based sites.
A good sites having no stupid plugin (or poorly coded plugin) and using a good cache plugin can handle lots of traffic compare to any other CMS. Just make sure things are setup right.
I will suggest to use custom php-fpm/nginx setup if you want to host just a few sites.
|
Posted by net, 08-04-2015, 12:14 AM |
You do not just look for optimization, security is important too. You need to optimize it based on your server specs and traffic.
|
Posted by RajasiNet-host, 08-04-2015, 12:20 AM |
Use SSD Disk with KVM VPS and configure NGINX+MariaDB+php5-fpm+Ubuntu Linux. i have a configuration from one of blog which setup handled 10K simultaneous users/visitors. If you will ask for what configuration would be great for you. i would suggest to go for atleast 4 GB RAM and 8 core CPU. One more important thing is never use nulled theme or module for your wordpress it can cause 80% performance degrade and can eat 100% of your CPU.
|
Posted by ttgt, 08-04-2015, 08:11 PM |
will it only cache the html page ? or also include images and attachment file ?
|
Posted by brianoz, 08-04-2015, 10:06 PM |
Nginx is something like 10x faster than Apache in serving static files (eg: .css, .js, static .html and .jpg) as it uses a kernel call to do the actual file transfer.
Varnish is a huge help, but can be tricky to setup if you haven't done it before. You can also use a WordPress cache like SuperCache (mentioned above) along with some nginx config file rules so PHP never runs when the file is already in the cache. The performance difference is amazing - for example, 600ms down to 90ms per page. (Admittedly, the config file rules aren't trivial but most caches give detailed instructions).
Last edited by brianoz; 08-04-2015 at 10:19 PM.
Reason: clarify
|
Posted by ttgt, 08-04-2015, 10:11 PM |
if i install nginx plugin on cpanel server,it still use apache to process mainly.
1. for the static files,do you mean nginx will not call apache to get the files but get the files from hdd directly ? or it also store the static files on it's folder to read more quickly ?
2. for this cache feature,how to limit how many MB per account can be cached/stored on ram ?
3. because i ever use Varnish plunin,and user want to update new file or page but not readable quicly.is it normal ?
|
Posted by jazib, 08-10-2015, 02:36 PM |
Thanks a lot for your suggestion guys, though server specs are E3-1240v1, 4 x 3TB SATA Hardware Raid-10, 32GB Memory. Wordpress more likely to be serving videos and .jpg files.
|
Posted by Srv24x7, 08-11-2015, 09:34 AM |
Hi,
You can also give a try with redis + varnish installation. This will boost the site loading and server performance too.
|
Posted by ttgt, 08-11-2015, 11:28 AM |
can it work with cpanel well ?
|
Posted by Srv24x7, 08-13-2015, 09:46 AM |
Hi,
Redis works good. Only for varnish, a little bit of configuration has to be done to make it works proper.
|
Add to Favourites Print this Article
Also Read