Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-07-2003, 07:45 PM   #1
Registered: Aug 2002
Location: Huntsville AL
Distribution: redhat 7.3
Posts: 48

Rep: Reputation: 15
Question Server Users on Line

Hi all,

I'm running an apache server on linux RedHat 7.3 and wondered if anyone knows how to detect how many users are on line, or rather, visiting the web site in real time.

Thanks ahead !!
Old 04-08-2003, 08:41 PM   #2
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 65
As a cgi-bin? or just from the command line?

From the command line:

netstat -a | grep http

or another cute one:

tail -f /var/log/apache/access_log | cut -d1 '"' -f1

My log may be in a different spot that yours... also http you'll notice only keeps the port open briefly, so "current" users to apache is debatable.


Old 04-08-2003, 08:46 PM   #3
LQ Newbie
Registered: Apr 2003
Distribution: RH8
Posts: 8

Rep: Reputation: 0
You can also enable the server-status module in httpd.conf, uncomment out the /server-status Location directives, and navigate to http://localhost/server-status to see a live view of what each apache proccess is doing, and the overall server statistics.

dont forget to do "apachectl restart" or "killall -HUP httpd" before attempting to browse to that location.
Old 04-10-2003, 06:31 PM   #4
Registered: Aug 2002
Location: Huntsville AL
Distribution: redhat 7.3
Posts: 48

Original Poster
Rep: Reputation: 15
Cool All Work great!

All these suggestions work great! I confused myself by forgetting to use these direct approaches. Mystery de-cloaked! Thanks


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ text file line by line/each line to string/array Dimitris Programming 15 03-11-2008 08:22 AM
vsftpd server on line how to... shahg_shahg Linux - Networking 1 02-09-2005 04:43 AM
Adding users via command Line AmdMhz Linux - Software 4 10-31-2004 01:29 PM
How to get list of system users from command line? tictocdoc Linux - General 3 03-12-2004 03:06 PM
{HELP} Configuring a Leased Line Server sachin969 Linux - General 0 09-17-2002 03:13 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration