Aug 262018
 

Install Lets Encrypt In A VPS Server Using WHM, shows you how to setup and install Free Let’s Encrypt in your vps server.

The following instructions shows you how to setup and install Free Let’s Encrypt in your vps server using WHM. It also advice’s you to set up SSL in the sites hosted in your server. These instructions are based on Justhost VPS server (Note: This is an affiliate link. I get a small commission if you make a purchase). However they should work for most linux servers.

Information: Click on the following URL Let’s Encrypt to learn more.

Install Lets Encrypt In A VPS Server

Step 1 ) Log into WHM (Web Host Manager) as illustrated in the image below. Make sure your login has https in the URL address. The following URL is an example of a secured login.

Note: Your servers login URL address might be different.

Example URL Address

https://yoursite.com:2087/

If you see the “Feature Showcase” scroll to the bottom and click the Exit to WHM button.

update-php-version-vpn-server-log-into-whm

Manage AutoSSL

Step 2 ) Go to SSL/TLS and click on Manage AutoSSL as illustrated in the image below.

1-select-manage-autossl-to-install-lets-encrypt-vps-server

AutoSSL Providers

Step 3 ) Click on Providers tab as illustrated in the image below. This allows you to select from the following options. For this tutorial I have selected Let’s Encrypt.

AutoSSL Providers

  • Disabled
  • Let’s Encrypt = This is the option selected for this tutorial.
  • cPanel (powered by Comodo)

Required Options To Select

  • I agree to these terms of services.
  • Create a new registration with the provider.
  • Click on Save button once you have finished with the settings.

2-click-providers-tab-to-install-lets-encrypt-vps-server

AutoSSL Options

Step 4 ) The following image Options allows you to select the following option.

AutoSSL Options Part 1

  • Allow AutoSSL to replace invalid or expiring non-AutoSSL certificates = (Note: If you are not sure about this option, I suggest that you don’t enable it. By default this option is disabled. Read the message carefully.)

3-click-options-tab-to-install-lets-encrypt-vps-server

Step 4-a ) The following image allows you to select from the following options. By default all these options are selected. So in my option just leave them selected.

AutoSSL Options Part 2

  • Notify when AutoSSL cannot request a certificate because all domains on the website have failed DCV.
  • Notify when AutoSSL defers certificate renewal because a domain on the current certificate has failed DCV. The system will only send this notification in the latter half of a certificate’s renewal period.
  • Notify when AutoSSL will not secure new domains because a domain on the current certificate has failed DCV.
  • Notify when AutoSSL has renewed a certificate successfully.
  • Notify when AutoSSL has renewed a certificate and the new certificate lacks one or more of the website’s domains.
  • Notify when AutoSSL has renewed a certificate and the new certificate lacks at least one domain that the previous certificate secured.

4-select-options-tab-to-install-lets-encrypt-vps-server

Manage VPS Users

Step 5 ) The following image Manage Users allows you to select from the following options.

Configure AutoSSL For Users Buttons

  • Enable AutoSSL on selected 0 users
  • Disable AutoSSL on selected 0 users
  • Reset AutoSSL on selected 0 users

AutoSSL User Options

  • Enable AutoSSL
  • Disable AutoSSL
  • Reset to Feature List Settings = (Note: The reason I selected this option is because my VPS server is hosted at Justhost and I have more than one site active.)
  • Click on Check button once you are ready.

5-configure-autossl-for-users-to-install-lets-encrypt-vps-server

Setup SSL In Your Sites

Step 6 ) Once the above has been completed in your server, you need to set up your site or sites in your vps server. You can either edit your .htaccess file or use a plugin. If you decide to use a plugin, the following URL WordPress SSL Checking Plugins has a list of plugins I recommend.

Note: If you have a website hosted in JustHost, you can check the following documentation manage-autossl for more instructions.

That is all it takes to install free Lets Encrypt in a vps server.

If you have any questions please let me know. I will be updating this tutorial from time to time. Come back to read the latest updates.

Enjoy.

Oct 282014
 

VPS 500 Internal Server Error Dropbox post will guide you in correcting the server error between your VPS and dropbox using ManageWP services.

Lucky for me I receive great support from Managewp staff. They are unbelievable in the way they provide solutions and the way they help you.

Servers Specs.

  • Centos 6.5
  • WHM 11.44.1 (build 19)

Credit for this tutorial is to be given to the following ManageWP staff for their help.

  • Nemanja
  • Olivera
  • Nebojsa
  • Petar
  • And a special thanks to Bojan for his great sever knowledge

I was having issues delivering my backups between my VPS and Dropbox through Managewp. I was always receiving the following error message. See image below.

VPS-500-Internal-Server-Error-Dropbox

VPS 500 Internal Server Error Dropbox Steps

The 500 error seems to be related to the site server timeout that cuts the connection between ManageWP and the site server, but the PHP continues running in the background.

These are some of the suggestions to fix the timeout issue.

1 ) PHP parameters that can cut the running script:

These parameters can be found at php.ini file, usually located in the /etc/php(5)/..

  • max_execution_time: “600″
  • max_input_time: “600″
  • memory_limit: “256M”
  • file_uploads: “On”
  • upload_max_filesize: “20M”
  • post_max_size: “20M”
  • max_file_uploads: “20″

These parameters can be found only if you are using fastcgi, and locations can vary, i suggest searching with find or grep command for those.

  • FcgidIdleTimeout 600
  • FcgidIOTimeout 600
  • FcgidProcessLifeTime 600

Also, check web-server timeouts and configuration, it can be found at /etc/httpd or /etc/apache2 or /etc/nginx depending on which web-server is running.

  • Apache : check timeouts
  • nginx: proxy_read_timeout = 600
  • fastcgi_read_timeout = 600

2 ) The following images illustrates some of the changes made to correct the 500 server timeout issue.

Go to Home -> Server Configuration -> Tweak Settings -> PHP to change the following settings.

VPS-500-Internal-Server-Error-Dropbox-php-settings

Go to Home -> Service Configuration -> Apache Configuration -> Global Configuration to make the following changes.

Note: You can check my previous post vps-server-htaccess-403-error for a visual illustration.

VPS-500-Internal-Server-Error-Dropbox-server-settings

All of the above improved the functionality of the VPS but the error still persisted. The following changes plus the above fixed the 500 error timeout.

3 ) The final changes that finally fixed the issue was made within Apache web-server configuration via terminal, after that everything worked well without any more 500 errors.

To carry out the following changes you need to go to the following path /usr/local/apache/conf/php.conf.

Timeouts Additional Changes:

  • ProcessLifeTime 7200
  • IPCConnectTimeout 600
  • IPCCommTimeout 600

After the above is carried out, reset the PHP and Apache for the configuration to be implemented.

I hope the above helps you with your VPS.

If you have any questions please let me know. I will be updating this tutorial from time to time. Come back to read the latest updates.

Enjoy

Sep 082014
 

VPS Server Htaccess 403 Error post will share one method I used to troubleshoot the issue on my server.

What was happening is the following, every time I tried to save my permalink structure in my WordPress website it generated a 403 error. Also when I tried to save the permalink structure for an addon domain, it also crashed and generated the 403 error. Another words it could not write to the .htaccess file without generating the 403 error.

In my case the error logs for the 403 error generated was due to the following settings. These are the settings the support staff in Justhost pointed me too. I had to check the following in the WHM called Options – Allow Symlinks.

VPS Server Htaccess 403 Error Fix

1 ) Log in to WHM. Make sure you type the following www.yourdomain.com/whm. In some cases you might need to type your IP address instead of the domain name. The longin Username is always root.

vps-server-htaccess-403-error-whm-login

2 ) Go to the following page Home -> Service Configuration. See image below.

vps-server-htaccess-403-error-whm-home3 ) In the following image you will click on Apache Configuration.

vps-server-htaccess-403-error-whm-apache-configuration

4 ) In the following image Apache Configuration click on Global Configuration.

vps-server-htaccess-403-error-whm-global-configuration5 ) You can use the search bar on the upper-right of the page. Search for the word “symlink”. You will see the following option “Directory / Options”. Check the following options and “SymLinksIfOwnerMatch” if you also see the following option “FollowSymLinks” also enable it. Click on Save button check your website and make sure you don’t receive any more 403 errors.

vps-server-htaccess-403-error-whm-directory-options

If the above does not work then there might be some other settings or options that you will need to investigate.

This tutorial will be updated from time to time so keep coming back for the latest.

If you have any questions please let me know.

Enjoy

Sep 022014
 

Mbr Solution Host Website Setup shows you how I set up my website for the first time and improved the speed and performance.

Last Updated: November 20, 2017

The first action I took was to sign up for a VPS account through Justhost. I have being with Justhost for about 5 years now. I am very happy with their services and prices.

Mbr Solution Host Setup Review

  • VPS Hosting account Justhost.(Affiliated Link)
  • 1 post
  • 0 pages
  • 3 images
  • 3 plugins installed WordPress SEO by Yoast, ManageWP – Worker and All In One WP Security & Firewall
  • WordPress 3.9.2

The following image Summary displays the following information.

  • Page Speed Grade = F
  • YSlow Grade = (80%)
  • Page load time = .081s very fast
  • Total page size = 277KB good

gtmetrix-first-time-screen

The following image Breakdown Page Speed displays the following information.

  • Leverage browser caching = F (0)
  • Enable gzip compression = F (5)
  • Minify CSS = F (41)
  • Enable Keep-Alive = E (53)
  • Minify JavaScript = B (81)
  • Defer parsing of JavaScript = B ( 86)
  • Optimize images = B (89)

gtmetrix-first-time-breakdown-page-speed

The following image Breakdown YSlow displays the following information.

  • Add Expires headers = F (0)
  • Compress components with gzip = F (23)
  • Use a Content Delivery Network (CDN) = F (0)

gtmetrix-first-time-yslow

The above images tells you a lot about what is happening with the website and server settings. What I will do first is optimize the website using the following tutorial speed Up Suffusion and WordPress.

I added the following to my .htaccess file.

<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>

# BEGIN Keep-Alive

<ifModule mod_headers.c>
Header set Connection keep-alive
</ifModule>

# END Keep-Alive

#Set caching on image files for 11 months
<filesMatch “\.(ico|gif|jpg|png)$”>
ExpiresActive On
ExpiresDefault “access plus 11 month”
Header append Cache-Control “public”
</filesMatch>

<filesMatch “\.(css|js)$”>
ExpiresActive On
ExpiresDefault “access plus 1 week”
Header append Cache-Control “public”
</filesMatch>

The following list is what I ended up with to improve my speed and performance.

  • 1 post
  • 2 pages
  • 3 images
  • 8 plugins installed
  • WordPress 3.9.2

The following image Summary displays the final results.

  • Page Speed Grade = A (96%)
  • YSlow Grade = A (96%)
  • Page load time = 0.72s
  • Total page size = 88.4 KB
  • Total number of requests = 9
gtmetrix-first-time-final-results

======================================

Latest data checked and date Added May 30, 2017

 

The following list is what I ended up with to improve my speed and performance.

  • 3 post
  • 7 pages
  • 16 images
  • 16 plugins installed and 14 are active
  • WordPress 4.7.5

Final list of plugins active.

  1. ManageWP – Worker 4.2.18
  2. All In One WP Security 4.2.7
  3. The SEO Framework 2.9.2
  4. Autoptimize 2.1.0
  5. Googleplus, Facebook, Twitter Share Buttons 1.4
  6. Google Authenticator 0.48
  7. Hyper Cache 3.2.6
  8. Plugin Organizer 9.0.4
  9. Fast Secure Contact Form 4.0.51
  10. Speed Booster Pack 3.1
  11. Suffusion Shortcodes 1.05
  12. UpdraftPlus – Backup/Restore 1.13.1
  13. Wp-Insert 2.1.6
  14. WP User Avatar 2.0.8

The following image Summary displays the final results.

  • Page Speed Grade = A (100%)
  • YSlow Grade = A (92%)
  • Page load time = 1.7s
  • Total page size = 161 KB
  • Total number of requests = 12

mbr-solution-host-website-setup-gtmetrix-latest-results-2017

I hope this helps you.

I will be updating this post from time to time to keep illustrating the latest website performance against the first time review above.

Enjoy