Jetserver – The Lazy Admin Blog
Home  /  cPanel • JetBackup • NGINX  /  cPanel :: Safely restore an account after enabling NGiNX

cPanel :: Safely restore an account after enabling NGiNX

elialum May 23, 2019 Leave a Comment

cPanel now officially supports Nginx as a web server (completely replaces Apache). You can read more about their implementation in their official documentation here.

We’ve been playing around with it, and while everything seemed to be working out of the box, we noted that when restoring an account from backup (using JetBackup), nginx configuration need to be reloaded again, otherwise the account will return “404 error“.

The solution is very simple, reloading the nginx configuration could be done via the following cli script

/usr/local/cpanel/scripts/ea-nginx config --all

We can automate the procedure through JetBackup Hooks – we need to create a post restore hook, that will be initiated after a full account restore.

We tested a full account restore using the hook, and site is working good –

Nothing like a good automation 馃檪

 

Tags: cPanel, JetBackup, nginx
Previous Article
Next Article

About Author

elialum

Related Posts

  • Building your own private cloud

    Building your own private cloud

    April 20, 2021
  • JetBackup :: Restore on steroids !

    JetBackup :: Restore on steroids !

    August 21, 2020
  • Jetbackup :: Better safe then sorry

    Jetbackup :: Better safe then sorry

    January 20, 2019

Leave a Reply

Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search Our Blog

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Filter by Categories
Apache
CentOS
CloudLinux
cPanel
ESXI
iSCSI
JetBackup
Litespeed
MySQL
NGINX
Reduxio
SSL
Uncategorized
VMware
Wordpress
XEN

Tags

apache aspx backup CentOS cloudlinux cPanel CXS freetds google htaccess iscsi JetBackup Libmodsecurity litespeed modsec modsecurity mssql MySQL netapp nginx odbc php php.ini phpselector VMFS WHM xenserver

Popular Posts

  • Allow a cPanel server to run a VHOST from multiple IP addresses April 3, 2018
  • How To Install & Configure a Galera Cluster with MySQL on Centos 7 February 6, 2018
  • Libmodsecurity installation April 14, 2016
  • JetBackup Cheat Sheet :: Automatically Acknowledge Alerts November 15, 2018

Recent Posts

  • Building your own private cloud April 20, 2021
  • Dealing with aggressive bot scanners September 14, 2020
  • Litespeed Geo Location Redirect September 14, 2020
  • JetBackup :: Restore on steroids ! August 21, 2020

Recent Comments

  • Khan on Allow a cPanel server to run a VHOST from multiple IP addresses
  • Khan on Allow a cPanel server to run a VHOST from multiple IP addresses
  • Oleg Drabkin on Allow a cPanel server to run a VHOST from multiple IP addresses
  • Khan on Allow a cPanel server to run a VHOST from multiple IP addresses
  • Daniel on How To Install & Configure a Galera Cluster with MySQL on Centos 7
讗讞住讜谉 讗转专讬诐 | JetApps