Solved

Drupal install ip reporting problem

Posted on 2007-03-28
4
223 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

770 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