• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue Whmcs will not log user IPs and only shows localhost

EmperorFPI

Basic Pleskian
Server operating system version
Rocky Linux 8.8 (Green Obsidian)
Plesk version and microupdate number
Plesk Obsidian Version 18.0.56
I have tried everything I could find.

In the phpinfo file it is showing the server Name correctly but the:

$_SERVER['REMOTE_ADDR'] is showing (127.0.0.1) localhost
$_SERVER['SERVER_ADDR'] is showing (127.0.0.1) localhost

and the,
$_SERVER['HTTP_X_FORWARDED_FOR'] is showing correct IP address of the server
$_SERVER['HTTP_X_REAL_IP'] is showing the correct IP address of the server

and WHMCS logs only show the (127.0.0.1) IP for ALL logins; Admin, Client, Incognito, using VPN

Where can I look, what can I try?

Thanks for helping
 
Says they fixed it on the changelog and gives a command to update.

Doesn't seem to work though. I ran it and it showed the actual IP instead to of local in RemoteIPInternalProxy


plesk bin apache --listen-on-localhost true

grep RemoteIPInternalProxy /etc/httpd/conf/plesk.conf.d/server.conf

RemoteIPInternalProxy 127.0.0.1
 
@EmperorFPI That recent fix is only for the the correct IP address being logged in Apache. It won't fix the PHP $_SERVER vars showing 127.0.0.1. The only way to fix this now is to disable the new Apache localhost feature with:

Code:
plesk bin apache --listen-on-localhost false
 
Back
Top