Complete guide for maintaining, optimising WordPress websites for optimum performance, maximum speed for loading webpages, maximum security for preventing website hacking & highjacking by intruders

Introduction

 
I have been using WordPress for almost more than 5 years now.

 
I will explain in below post step by step procedure to harden, secure & optimise WordPress for best performance & security.

 
So First thing first,

 

Introduction to WordPress

 
What is WordPress: WordPress is a free and open-source content management system (CMS) based on PHP and MySQL. Features include a plugin architecture and a template system. WordPress was used by more than 23.3% of the top 10 million websites as of January 2015. WordPress is the most popular blogging system in use on the Web at more than 60 million websites.

 
As we know of today WordPress is offered in two different formats, One is managed & hosted by team at WordPress.com & second as self hosted by user using downloadable installable package available at WordPress.org.

 

Difference between WordPress.com & WordPress.org

 
Following things really differentiate WordPress.com and WordPress.org from each other

 
1st Difference
WordPress.com: User provides the content & website is managed by team at WordPress.com
WordPress.org: Content provided by User & Managed by User itself

Continue reading “Complete guide for maintaining, optimising WordPress websites for optimum performance, maximum speed for loading webpages, maximum security for preventing website hacking & highjacking by intruders” »

Continue Reading Post

How to Leverage browser caching to improve webpage load time performance & speed

Introduction

 
To enable browser caching you need to set expiry dates on certain types of files.

 
Find your .htaccess file in the root of your domain. You can edit the htaccess file with notepad or any text editor.

 
In this file we will set our caching parameters to tell the browser what types of files to cache over period of time so that page loading time improves by avoiding or keeping certain files & using browser cache from history.

Continue reading “How to Leverage browser caching to improve webpage load time performance & speed” »

Continue Reading Post

How to fix WordPress.com Jetpack error called Your website needs to be publicly accessible to use Jetpack: site_inaccessible. Error Details: The Jetpack server was unable to communicate with your site [HTTP 404]. Ask your web host if they allow connections from WordPress.com

As we know WordPress community exist on wordpress.com & wordpress.org

 
WordPress.org is downloadable CMS (Content Management System) distribution for self hosted used by web designers & web developers.

 
Being CMS lead developer Automattic want’s it’s wordpress.com experience available to it’s wordpress.org users. So they developed plugin like JetPack for WordPress self hosted websites.

 
JetPack Error Description: Your website needs to be publicly accessible to use Jetpack: site_inaccessible
Error Details: The Jetpack server was unable to communicate with your site [HTTP 404]. Ask your web host if they allow connections from WordPress.com. If you need further assistance, contact Jetpack Support: http://jetpack.me/support/

 
Your website needs to be publicly accessible to use Jetpack- site_inaccessible Error Details- The Jetpack server was unable to communicate with your site HTTP 404

Continue reading “How to fix WordPress.com Jetpack error called Your website needs to be publicly accessible to use Jetpack: site_inaccessible. Error Details: The Jetpack server was unable to communicate with your site [HTTP 404]. Ask your web host if they allow connections from WordPress.com” »

Continue Reading Post

How to fix error ‘Safari can’t open page – because the server unexpectedly dropped the connection. This sometimes occurs when the server is busy.’

Safari can’t open page - because the server unexpectedly dropped the connection. This sometimes occurs when the server is busy

 
This happens to most of WordPress blogs when you sign in to your website’s Admin (wp-admin) page & whenever you try to navigate to different page or open a new page this error get displayed every time you do it.

 
Error: Safari can’t open page – because the server unexpectedly dropped the connection. This sometimes occurs when the server is busy. Wait for a few minutes, and then try again.

 
Here is how to fix this,

Continue reading “How to fix error ‘Safari can’t open page – because the server unexpectedly dropped the connection. This sometimes occurs when the server is busy.’” »

Continue Reading Post

Increasing page views per visit (session) ratio by sticky top navigation bar, here is how to create sticky navigation bar that becomes fixed to the top after scrolling

It is well known tried & tested method to have sticky navigation bar at top when you have responsive website design & layout.

 
A fixed navigation bar at top helps mobile user or desktop website user to have fixed area where he can find navigation icons & links through which he can browse & navigate current website. Having fixed navigation bar at top helps webmaster to increase page views i.e. it helps webmaster to increase page views per visits ratio.

 
Yes, it occupies space at top but helps user to have navigation links handy whenever he want to browse the website. Space constraints only refer to mobile devices with small screen size.

 
Following is the code which help you to have fixed navigation bar. Copy paste following css code in your style.css

Continue reading “Increasing page views per visit (session) ratio by sticky top navigation bar, here is how to create sticky navigation bar that becomes fixed to the top after scrolling” »

Continue Reading Post

Twitter Follow button is not loading or it is taking indefinite time to load, Here it is how to fix this with easy solution?

To increase user interaction, web traffic & user sharing we all add Twitter Follow button to encourage user to follow the WebMaster on twitter to get future updates about new blog articles through Tweets on Twitter.

 
But few day back I found out that my website was facing problems due to single Twitter follow widget in sidebar it was taking 1 minute or more load it increased my page load time by 40 seconds on average.

 
So what I did was simple,

Continue reading “Twitter Follow button is not loading or it is taking indefinite time to load, Here it is how to fix this with easy solution?” »

Continue Reading Post

How to fix WordPress Automatic Update Error called ‘[function.require]: failed to open stream: No such file or directory in’ & another error called ‘Fatal error: require() [function.require]: Failed opening required’, ‘(include_path=’.:/usr/local/php-5.3.27/share/pear’)’.

When WordPress.Org releases new update to it’s WordPress standalone CMS (Content Management System) for that you may have set your website to get your installation updated automatically or you may like to do it your self at your preferred time. What ever case may be.

 
But because of server load on part of your web host you may get error something like this with screwed up blank website with following error printed on screen:

 

Warning: require(/nfs/domains/your-domain-name.com/html/wp-includes/session.php) [function.require]: failed to open stream: No such file or directory in /nfs/domains/your-domain-name.com/html/wp-settings.php on line 122

Fatal error: require() [function.require]: Failed opening required '/nfs/domains/your-domain-name.com/html/wp-includes/session.php' (include_path='.:/usr/local/php-5.3.27/share/pear') in /nfs/domains/your-domain-name.com/html/wp-settings.php on line 122

 

Real cause of above errors:

 
Above mentioned errors are generated because of interrupted WordPress updates mostly because of heavy load on your web host’s online server. As update fails all files mismatch with consistent version number so some old source files remains as it is & only remaining few get updated with new version. So it is problem of source code version consistency.

 
How to fix this:

 
Error 01: [function.require]: failed to open stream: No such file or directory in

 
Error 02: Fatal error: require() [function.require]: Failed opening required & (include_path=’.:/usr/local/php-5.3.27/share/pear’)

Continue reading “How to fix WordPress Automatic Update Error called ‘[function.require]: failed to open stream: No such file or directory in’ & another error called ‘Fatal error: require() [function.require]: Failed opening required’, ‘(include_path=’.:/usr/local/php-5.3.27/share/pear’)’.” »

Continue Reading Post