Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: Suhosin and Server Info strange goings on..

    Sure, can you point me to a host that has no problems with anything whatsoever please...
    I see your point, smartypants. The point _I_ was trying to make was that there are some baseline expectations for any host, and a response like, "We couldn't solve the problem with our own servers" would break the limit, in my opinion.

    Happy to provide you with some good hosting options, if you really are interested. PM me for more info.

    It is their eccomerce server, and yes Apache is running as CGI. Would this always cause this issue then?
    Assuming the problem is at the CGI level, then I would say yes. Regardless, the problem is definitely at the server level, and it's up to your host to fix.
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

  2. #12
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: ip address problem - advanced whos online

    Quote Originally Posted by DrByte View Post
    It gets it from PHP via $_SERVER['REMOTE_ADDR'], which gets it from Apache, which supplies the info based on the Apache configuration of the server, which is under the control of your hosting company's server administrator.
    The hosting company came back and told me using $_SERVER['HTTP_X_FORWARDED_FOR'] will work (which it does)

    Where in the Zen code can I change it to this reference (if that will be as simple as that)

  3. #13
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Suhosin and Server Info strange goings on..

    Isnt this the solution, as found in Zencart 2.0?

    https://www.zen-cart.com/forum/showthread.php?p=357415

  4. #14
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: Suhosin and Server Info strange goings on..

    One of the major effects of running SuHosin is that it encrypts all session data. This is done to prevent session hijacking. If you disable that ability in SuHosin then you reduce its effeciveness greatly, but if you don't disable it then the session id stored on your site or in your db is encrypted and doesn't match with the unencrypted session stored on the visitors computer. The result is that no user can ever get anywhere on your website (the session ids never match).

    This, along with the ip problem you are reporting, indicates that they don't really know what they're doing.

    Vger

  5. #15
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Suhosin and Server Info strange goings on..

    Well Ive never had any of those issues on any of the sites, and the reason for the IP issue in who's online is due to running through a proxy.

    Hence my post above.

  6. #16
    Join Date
    Jan 2004
    Posts
    66,374
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Suhosin and Server Info strange goings on..

    Why is your host finding it necessary to run through a proxy? What's the business case for that?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #17
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Suhosin and Server Info strange goings on..

    Quote Originally Posted by DrByte View Post
    Why is your host finding it necessary to run through a proxy? What's the business case for that?
    No answer yet - for the meantime can you tell me what to change to $_SERVER['HTTP_X_FORWARDED_FOR'] so I can get the who's online working. Thanks.

  8. #18
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Suhosin and Server Info strange goings on..

    Its ok, I have modified includes/functions/whos_online.php and now it shows the correct IP's

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Trouble disabling suhosin encrypt on server
    By Soul39 in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 10 Feb 2010, 12:42 AM
  2. Server move - Problem with url and Server/Version Info - please help!
    By bethalicea in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 7 Jun 2009, 10:07 PM
  3. Download Shipping Strange Goings on!! HELP!
    By sywp in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 26 Oct 2007, 12:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR