Install mod_remoteip in Cpanel Server

To install mod_remoteip in Cpanel Server, run

Edit file

Add

Restart Apache.

At this stage, PHP applications will show proper visitor IP address.

Apache access logs will still show proxy server IP. To fix this, edit Apache configuration file.

Find

Replace with

Restart Apache