How can I get status info of Client and Server

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
bao
Forum Newbie
Posts: 8
Joined: Sun Dec 12, 2004 12:58 am

How can I get status info of Client and Server

Post by bao »

Hi Everyone,

please see this URL,
http://www.php.net/server-status

Who knows the functions of php to get the status of server and clinet.

Thanks, look forward to hearing from you soon,

Michael
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

you need to edit your httpd.conf ;)


LoadModule status_module modules/mod_status.so

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
ExtendedStatus On

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".localhost" to match your domain to enable.
#
<Location /server-status>
SetHandler server-status
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from .localhost
</Location>
bao
Forum Newbie
Posts: 8
Joined: Sun Dec 12, 2004 12:58 am

Post by bao »

Could you tell me how to get server status on IIS?

Thanks
CentaurAtlas
Forum Newbie
Posts: 1
Joined: Sat Feb 11, 2006 4:11 pm

Post by CentaurAtlas »

timvw wrote:you need to edit your httpd.conf ;)
I thought the question was how to get those variables via PHP.

E.g. how do you say pull out the number of active connections from mod_status via php?
Post Reply