Specifications

214 Chapter 13 Configuring and Managing Web Technologies
To change several settings:
$ sudo serveradmin settings
web:
setting
=
value
web:
setting
=
value
web:
setting
=
value
[...]
Control-D
Web serveradmin Commands
To manage Web service, use the following commands with the serveradmin tool.
Listing Hosted Sites
To view a list of sites hosted by the server, along with basic settings and status, use the
serveradmin getSites command.
To view sites:
$ sudo serveradmin command web:command = getSites
You can also view the sites using Apache, with the following command:
$ httpd -S
Viewing Service Logs and Log Paths
To view the contents of Web service access and error logs for each site hosted by the
server and to view log paths, use tail or another file listing tool.
To view the latest entries in a log:
$ tail
log-file
To see where the current error and activity logs for each site are located, use the
serveradmin getLogPaths command.
To view log paths:
$ sudo serveradmin command web:command = getLogPaths
Viewing Service Statistics
To display a log of periodic samples of the number of requests, cache performance, and
data throughput, use the
serveradmin getHistory command. Samples are taken once
each minute.
Command
(
web:command=) Description
getHistory View Web service statistics. See “Viewing Service Statistics” on
page 214.
getLogPaths Find the access and error logs for each hosted site. See “Viewing
Service Logs and Log Paths” on this page.
getSites View existing sites. See “Listing Hosted Sites” on this page.