?
Solved

Drupal install ip reporting problem

Posted on 2007-03-28
4
Medium Priority
?
238 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
2 Comments
 
LVL 2

Accepted Solution

by:
akmg earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses
Course of the Month13 days, 13 hours left to enroll

755 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