Red Hat DIRECTORY SERVER 2.0 - GATEWAY Manuel d'utilisateur Page 11

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 96
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 10
Chapter 1. Installing the software
/usr/bin/ab: This a stress-tester for the web server. Please do not stress-test
people’s servers without their explicit permission. Otherwise you may find them
stress-testing your skull with a pickaxe handle.
/usr/bin/htdbm, /usr/bin/htdigest, /usr/bin/htpasswd: These manipulate
user and password information for web access controls. We will see htpasswd
later in the Section called Access control by client identity in Chapter 10 but we will
not be considering the other commands in this course.
/usr/bin/logresolve: If a log file contains IP addresses rather than DNS names
for clients then this program will run through the log file and write out a copy with
hostnames replacing IP addresses. Because it caches resolved addresses it does this
rather efficiently. We will be covering log files (and why they might have IP ad-
dresses rather than hostnames) in Chapter 7.
System programs included with the web server
/usr/sbin/apachectl: This is the script that is provided by the Apache team to
simplify turning on and off the service. However, to keep the startup and shut-
down of the server consistent with the rest of the system the standard startup
scripts don’t use this for the main work.
/usr/sbin/httpd: This is the web server itself.
/usr/sbin/rotatelogs: This is an Apache utility providing for rotating log files.
However, it is not used by a Red Hat Linux system because there is a system-
wide log rotation facility which is used instead for consistency with the rest of the
system. This will be considered in detail in the Section called Log rotation in Chapter
7.
/usr/sbin/suexec: This is a helper program for Apache that lets the server run
external programs (e.g. CGI programs) as a different user than the user running
the web service itself. As we will not be covering CGI programming in this course
we will not be making any use of this program. As it is a setuid root program, you
may want to remove it if you don’t need it.
Quick and Dirty Web Server
The majority of this course concerns the (re)configuration of the web server. How-
ever, we should briefly describe what a system administrator should do if he or she
is happy with the default (which is not a bad set of defaults, by the way).
If the system administrator is happy to do all the changes to the web site as root then
nothing more needs to be done other than turning on the web server.
To enable the web server (so that it gets started at system boot) the system adminis-
trator needs to use the chkconfig command.
# chkconfig --list httpd
httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
# chkconfig httpd on
# chkconfig --list httpd
httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Figure 1-11. Enabling the web server
The next time the system is rebooted, the web server will be started. If you don’t
want to wait until a reboot, or don’t want to reboot, then it can be manually started
by running the script that would be run at boot time.
7
Vue de la page 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16 ... 95 96

Commentaires sur ces manuels

Pas de commentaire