VestCP SSL Certificate and CSR

For added security for your site it is recommended to always use secure protocol or HTTPS. To achieve this you need an SSL Certificate.

The Vesta hosting panel can generate a Free SSL Certificate using “Lets Encrypt”.

Enable Lets Encrypt SSL:

1. Login to your hosting panel using the “admin” user.

Then go here

user > (webuser) > login as (webuser) > web > yourdomain.com > edit

Note: Webuser is the user assigned for your website.

2. Enable the “SSL Support” checkbox and “Lets Encrypt Support”.

3. Hit “Save” button

Using other SSL certificate:

1. Login to your hosting panel using the “admin” user.

Then go here

user > (webuser) > login as (webuser) > web > yourdomain.com > edit

2. Enable the “SSL Support” checkbox

3. Click “Generate CSR” link

– Fill up the form and click “ok” button.

– Copy the CSR (Certificate Signing Request) and the SSL Key to your desktop.

– Your SSL authority / provider (eg. Comodo) will ask for your CSR to generate the SSL Certificate.

4. Once you receive the SSL Certificate from your provider you can go back here

user > (webuser) > login as (webuser) > web > yourdomain.com > edit

5. Enter the SSL Certificate, SSL Key and SSL Certificate Bundle/ Intermediate.

6. Hit “Save” button

If your certificate expires, follow the above steps to log in as user and go to web > yourdomain.com > edit

Disable the “SSL Support” checkbox and click Save.

Go back again and click to Enable SSL Support and click save. This will reestablish the SSL certificate.

Adding a Cron Job in Vesta Hosting Panel

Many website scripts require cron jobs to perform tasks at set intervals. It is very easy to add a cron job via the Vesta hosting panel. This guide will walk you through the steps.

Continue reading Adding a Cron Job in Vesta Hosting Panel

Managing VestaCP Backups

Backups are meant for disaster recovery. They are used to restore as much data that is possible to recover. IT IS NOT meant for reverting codes/content or data in the database unless there is no other way. We recommend getting a dev/staging site or dev/staging server.

Restoring from a backup will restore your entire site to the backup date.

It is very important to manage your backups. Please keep in mind that we only provide the storage and manage the storage servers. We do not make any guarantee on backup data/file integrity. Backup systems are very complex. As much as possible you need to keep your backup size small. Large backup sizes usually get corrupted.

To create a backup in your hosting panel:

user > (webuser) > login as (webuser) > backup >create backup

To download your backups:

Log in to your offsite server backup via FTP.

To adjust the backup time or frequency:

cron > “sudo /usr/local/vesta/bin/v-backup-users” > edit

You can change the cron time/schedule to fit your needs.

To change the backup count/total:

packages > your web package > edit

Backups: 3

Change “3” to your desired total number of backups to be generated.

Optimizing your backup:

1. Offload/Separate your media files into another storage

Uploading your photos/images/video/music to another storage system will make your site size very small. You can use our Storage Servers or FTP Storage.

2. Exclude directories

In your hosting panel

user > (Webuser) > “LOGIN AS (WEBUSER)” > backup > backup exclusions > configure

Web Domains:
yourdomain.com:public_html/wp-content/uploads

In the example entry above it is the WordPress media directory. Most of the files in the “uploads” directory are user uploaded content. Images and other media files are hard to compress making the backup size huge and prone to data corruption.

3. Remove unused files or archives

In best practice, you should not store files or achives inside the “public_html” or even inside your user root directory “/home/yourwebuser”. The backup system will process all files inside each web user directory.

Restarting Services of Your Server in VestaCP

To restart/stop/start server services such as MySQL, Apache, Nginx and other systems running in your server just log in to your hosting panel and go to “Server”.

500 Internal Server Error

One of the most common issue in hosting is getting the “500 Internal Server Error”. When that happens try to restart your web server (Apache).

server > apache > restart

 

Database/MySQL crash:

If your database has crashed you can restart “MySQL“.

server > mysql > restart

We recommend to “stop” first the “Apache”, then stop/start the “MySQL”.

 

Warm Reboot:

To restart the server you can click “Restart” under hostname.

server > yourhostname > restart

If there are issues we suggest to try first to stop/start/restart the Apache and MySQL before deciding to restart the server. If there are still issues then you can try to restart the server.

 

 

Managing Your Firewall in Vesta

Managing your firewall from the command line is a bit hard. We have pre-configured firewall rules applied in your server. This is for extra security.

To easily make changes in the firewall rules just log in to your hosting panel then go to “Firewall”. It is best to suspend rules that you don’t use.

You can add rules by clicking the “plus” icon or “Add rule.”

To ban an IP address:

firewall > list fail2ban > ban IP address

IMPORTANT: Do not suspend or delete the “PING” rule.

%d bloggers like this: