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

  • JetBackup :: Restore on steroids !

    JetBackup :: Restore on steroids !

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

    Jetbackup :: Better safe then sorry

    January 20, 2019
  • cPanel – Preventing users from downloading / restoring accounts

    cPanel – Preventing users from downloading / restoring accounts

    September 16, 2018

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
Search in posts
Search in pages
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

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

Recent Posts

  • Dealing with aggressive bot scanners September 14, 2020
  • Litespeed Geo Location Redirect September 14, 2020
  • JetBackup :: Restore on steroids ! August 21, 2020
  • XENSERVER :: CONNECTING ISCSI SR NETAPP STORAGE September 4, 2019

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