LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-07-2003, 07:45 PM   #1
radnix
Member
 
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
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
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.

Cheers,

Finegan
 
Old 04-08-2003, 08:46 PM   #3
madcoder
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
radnix
Member
 
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
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:39 AM.

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