Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Our Archives > General Archives > Servers > OSX + PHP = user origin IP problem ?

 
OSX + PHP = user origin IP problem ?
Thread Tools
Fresh-Faced Recruit
Join Date: Oct 2002
Status: Offline
Mar 29, 2004, 05:20 AM
 
Hi,

I'm using OS X Server 10.2.8.

When website visitors connect, their IP's are seen OK in the Apache access_log (I have multiple virtual sites, and I let them log to different log files). So webstats see unique visitors ok etc..

But when PHP asks a visitor IP address (like in forums etc). PHP always get's the server IP address. So all the forum posts seem to originate from one IP address, my server.

I'm using PHP 4.3.4 RC2.
But I don't think it has something to do with PHP , since it also happened when I used the PHP version that came with OS X (4.1.x I think).

What may be causing this?
<edit>
I read somewhere that Performance Cache may be causing this problem.
So I disabled it for said sites, but phpBB still shows the server IP address
</edit>
Any idea how to solve it?

Thx

<EDIT again>
I want to delete this post since disabling performance cache for ALL sites solved the problem for that particular site. So please delete post admin. Thx
</edit>

Ollio
(Last edited by ollio; Mar 29, 2004 at 06:04 AM. )
     
 
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:58 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2