βœ… Install & Configure Engintron on cPanel/WHM (2025 Edition)

Here’s the enhanced Engintron installation guide tailored for cPanel, with Cloudflare, CloudLinux, mod_lsapi, and Imunify360 considerations, including performance and security tuning.

Engintron places Nginx in front of Apache to cache static content, dramatically improving load times. This guide includes adjustments for Cloudflare, CloudLinux + mod_lsapi, and Imunify360 environments.


πŸ“₯ Installation

SSH into the server as root, then run:

cd /
rm -f engintron.sh
wget --no-check-certificate https://raw.githubusercontent.com/engintron/engintron/master/engintron.sh
bash engintron.sh install

🌐 Cloudflare Integration (Single Shared IP Setup)

If you’re using Cloudflare and your server uses a single shared IP, do the following after install:

  1. Edit Engintron’s custom Nginx config: nano /etc/nginx/custom_rules
  2. Uncomment and modify this line: set $PROXY_DOMAIN_OR_IP "xx.xx.xxx.xxx"; # Replace with your server’s shared IP
  3. Restart Nginx: /engintron/engintron-cli restart

This forces Nginx to bypass DNS resolution (which breaks under Cloudflare proxy) and send traffic directly to Apache over the local IP.


βš™οΈ CloudLinux + mod_lsapi Optimizations

If you’re using CloudLinux + mod_lsapi, this combo works great with Engintron. To maximize performance:

βœ” Enable mod_lsapi globally (if not already):

yum install liblsapi liblsapi-devel mod_lsapi
/usr/bin/switch_mod_lsapi --setup
/usr/bin/switch_mod_lsapi --enable-global
/usr/bin/switch_mod_lsapi --build-native-lsphp
service httpd restart

βœ” Check mod_lsapi is active:

httpd -M | grep lsapi
# Output should show: lsapi_module (shared)

πŸ›‘ Imunify360 Compatibility & Best Practices

Engintron is fully compatible with Imunify360.

βœ… Recommendations:

  • Disable Nginx Anti-DDoS config inside /etc/nginx/custom_rules if you’re already using Imunify360 WAF. The Imunify360 firewall + mod_security rules are enough.
  • Whitelist nginx in Imunify360 to prevent false positives.
  • Monitor logs: tail -f /var/log/imunify360/console.log tail -f /var/log/nginx/*error*.log

πŸš€ Performance Tuning Tips

Nginx Cache Location:

By default:

/var/cache/nginx/

Ensure it’s on fast disk (preferably NVMe).

Increase Nginx Cache Size:

Edit:

nano /etc/nginx/conf.d/00_engintron_cache.conf

Update values:

proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=cache_zone:512m max_size=4g inactive=60m use_temp_path=off;

Then:

/engintron/engintron-cli reload

❌ Uninstall Engintron

To remove it cleanly:

bash /engintron.sh remove

Let me know if you’d like a pre/post install test script or a systemd monitor for nginx stability.

Scroll to Top