The Lazy Admin Blog

Home  /  cPanel • JetBackup • NGINX  /  cPanel :: Safely restore an account after enabling NGiNX

cPanel :: Safely restore an account after enabling NGiNX

May 23, 2019 cPanel, JetBackup, NGINX 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

Related Posts

  • Convert JetBackup to cPanel structure

    Convert JetBackup to cPanel structure

    October 6, 2022
  • Enable TLS 1.1/1.0 on cPanel servers

    Enable TLS 1.1/1.0 on cPanel servers

    September 30, 2022
  • Building your own private cloud with XenServer

    April 20, 2021

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
Emails
ESXI
iSCSI
JetBackup
Linux
Litespeed
MySQL
NGINX
Oracle
Reduxio
Security
SSL
Uncategorized
VMware
Wordpress
XEN

Tags

apache aspx backup bash CentOS cloudlinux cPanel CXS Emails freetds google htaccess IMAP InnoDB iscsi JetBackup Libmodsecurity litespeed modsec modsecurity mssql MySQL netapp nginx odbc Oracle php php.ini phpselector rsync ssh ssmtp systemd threads VMFS WHM Wordpress xenserver

Popular Posts

  • Convert JetBackup to cPanel structure October 6, 2022
  • How To Install & Configure a Galera Cluster with MariaDB on Centos 7 February 6, 2018
  • Allow a cPanel server to run a VHOST from multiple IP addresses April 3, 2018
  • rsync without prompting for password October 10, 2022

Recent Posts

  • Understanding Why More Threads Can Sometimes Slow Down Performance October 9, 2024
  • Set up a new systemd service May 18, 2024
  • Bash Arrays November 7, 2023
  • rsync without prompting for password October 10, 2022

Recent Comments

  • Sven on rsync without prompting for password
  • TheLazyAdmin on rsync without prompting for password
  • Sven on rsync without prompting for password
  • TheLazyAdmin on Convert JetBackup to cPanel structure
  • Chris on Convert JetBackup to cPanel structure
Privacy Policy • Contact