Solved

Drupal install ip reporting problem

Posted on 2007-03-28
4
222 Views
Last Modified: 2012-05-05
Not sure where to post this. I am using the drupal cms with a multi site install. The watchdog module logs all activity with hostname and action. On my particular install, it is reporting the server's own ip for every action. I am looking for some advice or help in order to fix it so that it reports the ip/host of the person doing the actual action. Any help would be appreciated.
0
Comment
Question by:rolandsnowe
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
akmg earned 500 total points
ID: 18911625
Drupal uses the REMOTE_ADDR CGI environment variable to determine the "ip/host of the person doing the actual action" ( http://cvs.drupal.org/viewcvs/drupal/drupal/includes/bootstrap.inc , search for "function watchdog"). as a quick google search ( http://www.google.com/search?q=REMOTE_ADDR ) shows, this is not reliable. specifically, it doesn't work when you use a proxy. http://www.php.net/getenv shows ways to work around this.

hope that helps.
0
 
LVL 2

Expert Comment

by:akmg
ID: 18911641
ah, forgot: http://drupal.org/search/node/REMOTE_ADDR should be helpful, too, especially http://drupal.org/node/20471 .
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now