musti19 Posted January 1, 2013 Share Posted January 1, 2013 Hello, since i moved my whmcs installation to a new server, whmcs logs, user & admin logins with the IP of WHMCS Server. Where can be the problem? thank you 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Chris Posted January 1, 2013 Share Posted January 1, 2013 Hello, This sounds like an issue with the PHP or the Webserver. WHMCS uses PHP's REMOTE_ADDR function to display the connecting IP: http://php.net/manual/en/reserved.variables.server.php You may want to contact your Hosting Provider for assistance regarding PHP/WebServer configurations. Note: From my experience, Nginx & Varnish running as a proxy against Apache have been known to cause this. 0 Quote Link to comment Share on other sites More sharing options...
musti19 Posted January 1, 2013 Author Share Posted January 1, 2013 You're right. Im using Nginx&Varnish, is there a solution for this? thank you 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Chris Posted January 2, 2013 Share Posted January 2, 2013 You're right. Im using Nginx&Varnish, is there a solution for this? thank you Hello, Nginx & Varnish are the actual cause of the problem. It would affect any PHP script using REMOTE_ADDR, so it's not something that WHMCS itself can resolve. I recommend contacting Nginx or Varnish support or looking on their forums for that answer. 0 Quote Link to comment Share on other sites More sharing options...
musti19 Posted January 2, 2013 Author Share Posted January 2, 2013 thank you.. i look for a solution now, if i find can post here. 0 Quote Link to comment Share on other sites More sharing options...
musti19 Posted January 2, 2013 Author Share Posted January 2, 2013 (edited) ok, i checked my system. SERVER["REMOTE_ADDR"] is set correctly (Client/Visitor IP) i checked via phpinfo and test.php <?php print ('Your IP is "'.$_SERVER['REMOTE_ADDR'].'". '); ?> I think, WHMCS uses a another variable? PS.: In wordpress are the ips correctly logged. Edited January 2, 2013 by musti19 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Chris Posted January 2, 2013 Share Posted January 2, 2013 Musti, Could you open a ticket with us at whmcs.com/get-support and PM me the ticket number? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.