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.

Jun 192018
 

The following tutorial Set PHP Version Per Domain VPS Server, shows you how to set up the php version to each domain added in your vps server.

The following instructions shows you how simple it is to assign a php version to each domain added to your vps server. This is much easier now in EasyApache 4. You don’t have to restart the server or use command line in the backend anymore to change the php version.

Update PHP Version VPS Server Tutorials

  1. How To Update PHP Version in a VPS Server
  2. Set PHP Version Per Domain VPS Server

Note: Make sure you notify your clients just in case there is any downtime. That is, if you are hosting other accounts in your VPS or Dedicated server.

Set PHP Version Per Domain 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: In your server the login URL address might be different.

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

Step 2 ) Click on MultiPHP Manager as illustrated in the image below.

1-multiphp-manager-vpn-server-whm-software

Step 3 ) Click on PHP Versions tab as illustrated in the image below.

2-php-version-multiphp-manager-whm-software

Step 4 ) The following image System PHP Version allows you to edit the default PHP version you want to assign by default when adding a new domain. In this example ea-php56 is set as default.

3-system-php-version-multiphp-manager-whm-software

Step 5 ) The following image Set PHP Version per Domain, allows you to select one ore more domains from the list and set the php version. This is a great opportunity to carry out some test. It is always a good idea to have a site for testing a new php version.

Set PHP Version per Domain

  • Select one ore more domains from your list.
  • Select PHP Version from the list “If you have more than one version added”. Once you are ready, click on Apply button.
  • Search for a domain name when you have many domains added to your server.

4-set-php-version-per-domain-multiphp-manager

That is all it takes to set up a php version per domain in your 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.

Aug 102017
 

How To Upgrade MySQL in cPanel post provides instructions on how to upgrade your Apache mySQL database in cPanel via WHM.

To upgrade MySQL, you will need to login to WHM. This tutorial will show step by step what options to select and the final results.

Note: It is important to always create a backup of your databases. You can also create a backup of your server if you want. Nowadays server backups are done on a daily basis.

How To Upgrade MySQL in cPanel

Step 1 ) Login to your WHM Panel.

Step 2 ) Go to WHM -> Software -> MySQL/MariaDB Upgrade to begin upgrading MySQL.

apache-mysql-upgrade1

7 Steps To Upgrade MySQL

Step 3 ) The following image displays the version MySQL 5.6 (Stable) chosen for this tutorial. Click the Next button once you have select your option.

apache-mysql-upgrade2

Step 4 ) The following page with present you with a list of “Upgrade Warnings”. Select the check box for each warning after reading and understanding it. Click on the Continue button when you are ready for the next step.

Note: You will almost always see an advisory suggesting to perform a full MySQL database backup. This is highly recommended.

apache-mysql-upgrade3

Step 6 ) The third step allows you to choose from one of the following options. Read each option carefully and choose the correct one for your upgrade.

Upgrade Type

  • Unattended Upgrade (This option was chosen for this tutorial)
  • Partially-Interactive Upgrade
  • Interactive Upgrade. The latter two options should only be chosen if you have special configurations in place.
  • Click on Continue button when you are ready to proceed.

apache-mysql-upgrade4

Step 7 ) The following image displays the progress bar letting you know that MySQL is being upgraded.

apache-mysql-upgrade5

Step 8 ) The following image display the upgrade process completed without any errors or warnings. This is what you want to see when you upgrade your version. Click on Back button to go back to the beginning.

apache-mysql-upgrade6

Step 9 ) Once the process is completed and you return to the beginning you should see your upgraded version. In this example MySQL was upgraded from version 5.5 to version 5.6.35.

Note: If you are upgrading from a version earlier than MySQL 5.5, I recommend that you consult your host before going ahead.

apache-mysql-upgrade7

If everything went well then your MySQL is updated. If your run into issues then you will have to contact your host or WHM forums.

I hope the above helps you.

If you have any questions please let me know.

Enjoy

Jun 192017
 

The following tutorial How To Update PHP Version in a VPS Server, shows you how to update the PHP Version in EasyApache 4 and more.

Last Updated: June 19, 2018

Latest News: I have updated the tutorial. 

The following instructions refer to Justhost VPS or Dedicated servers. Changing the PHP versions, loading custom Apache mods, and other Apache/PHP customization are all performed in the Web Host Manager (WHM). Nowadays updating the PHP version in EasyApache 4 has become very easy. During the process your server might be down for a period of time.

Update PHP Version VPS Server Tutorials

  1. How To Update PHP Version in a VPS Server
  2. Set PHP Version Per Domain VPS Server

Note: You should make sure you have a backup just in case something goes wrong. Make sure you notify your clients of the downtime if you are hosing other accounts in your VPS or Dedicated server.

How To Update PHP Version in a VPN 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: In your server the login URL address might be different.

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

Step 2 ) Go to the search field, in the upper left hand corner, search for EasyApache. Or you can scroll down until you see Software. Select EasyApache 4 as illustrated in the following image.

update-php-version-vpn-server-select-whm-software-new

Step 3 ) Click on Customize button as illustrated in the following image. This allows you to begin customizing EasyApache 4 in your server.

update-php-version-vpn-server-customize-profile-new

Step 4 ) The following image shows you a list of the steps needed to build the profile. Click on PHP Versions as illustrated in the image below. This allows you to select all the different PHP versions you might decide to include in the profile.

Profile Build Steps

  • Apache MPM
  • Apache Modules
  • PHP Versions
  • PHP Extensions
  • Ruby Via Passenger
  • Review

update-php-version-vpn-server-profile-start-menu-new

Step 4-a ) The following image shows you the PHP versions selected to be added to the profile.

PHP Versions Selected

  • php56 = Currently the php version is updated to version 5.6.36
  • php71 = Currently the php version is updated to version 7.1.18
  • php72 = Currently the php version is updated to version 7.2.6
  • Click on Next button to continue with the profile update.

select-php-versions-vpn-server

Step 4-b ) Once you have completed selecting the different PHP versions to the profile, click on PHP Extensions as illustrated in the following image. Start to add the extensions you want per PHP version selected previously.

Note: If you are running WordPress as it is in this case, make sure you select the minimum required extensions to run WordPress for all PHP versions. Or else you will run into all sorts of issues. Another option is to install the same extensions you have running in the current PHP version installed.

select-php-extensions-in-vpn-server

Step 4-c ) The following image Review, shows you the server preparing to review the selected packages.

start-reviewing-php-version-packages-vpn-server

Step 5 ) The following image shows you the review process completed. If everything goes well you will not have to carry out any more actions. As you can see below, there is nothing to do for this profile build.

PHP Packages Reviewed

  • Please review the following list of packages you are about to install by provisioning this profile. There are no packages to be installed.
  • Please review the following list of packages you are about to upgrade by provisioning this profile. There are no packages to be upgraded.
  • Please review the following list of packages you are about to uninstall by provisioning this profile. There are no packages to be uninstalled.

review-php-versions-vpn-server

Step 5-a ) Once you are happy with your selection, click on Provision button as illustrated in the image below. You can also click on Save as profile button, if you wish to save the profile for future usage. Alternative you can also click on Cancel button to cancel the profile build. If you update or add new extensions, you will the option to download a log file to your computer.

save-php-versions-packages-vpn-server

That is all it takes to build or rebuild an Apache profile through WHM. The next step is to associate the profile built to the sites running in your server. This will be included in another tutorial.

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