Install Imunify360 in Nginx like a pro with our experts by your side. Read on to learn more.
At Bobcares, we offer solutions for every query, big and small, as a part of our Server Management Services.
Let’s take a look at how our Server Support Team is ready to help customers with installing Imunify360 in Nginx.
How to Install Imunify360 in Nginx
Did you know that we can install Imunify360 directly on the server without any panel? Today, our Support Techs are going to take us through installing Imunify360 in Nginx.
In fact, installing Imunify360 involves the four following steps:
- Install and configure web server modules.
- Configure Imunify360 integrations
- Install Imunify360
- Modify default Imunify360 settings
The Imunify360 stand-alone version requires ModSecurity 3.0.x for Nginx, nginx module ngx_http_realip_module. We also have to enable the json extension loaded and proc_open functions in PHP. led.
Since we are installing Imunify360 in Nginx, we have to create a separate file at /etc/nginx/modsec.conf and add the following ModSecurity directives to it:
SecAuditEngine RelevantOnly SecConnEngine Off SecRuleEngine On SecAuditLogFormat JSON # should match modsec_audit_log option in integration.conf (see below) SecAuditLog /var/log/nginx/modsec_audit_log
Then, we have to create an empty file at /etc/sysconfig/imunify360/generic/modsec.conf. This will be replaced by the real configuration file using the installation process.
After that, we have to enable ModSecurity and then include both the above files in the Nginx configuration via the modsecurity_rules_files directive as seen below:
modsecurity on; modsecurity_rules_file /etc/nginx/modsec.conf; modsecurity_rules_file /etc/sysconfig/imunify360/generic/modsec.conf; #
The next part of the installing Imunify360 in Nginx involves Imunify360 integration configuration. At this point, we have to set the path and graceful restart script in the integration.conf file as seen below:
- [web_server].graceful_restart_script
- [web_server].modsec_audit_log
- [web_server].modsec_audit_logdir
After that, we have to proceed with the following steps:
- To begin with, get a license key at this link.
- Then, log into the server with root privileges.
- Next head to the home directory and run the following commands:
wget https://repo.imunify360.cloudlinux.com/defence360/i360deploy.sh -O i360deploy.sh bash i360deploy.sh --key KEY
Finally, we can modify default Imunify360 settings as per our requirements. If you have any trouble with the above steps, contact our Supprot Team for an extra hand.
[Need assistance with a different issue? We are available 24/7.]
Conclusion
In a nutshell, our skilled Server Support Engineers at Bobcares took us installing Imunify360 in Nginx.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
0 Comments