NOTE
663
Running a Linux, Apache, MySQL, and PHP (LAMP) Server 24
Port: Specifies which TCP port to listen on but does not enable you to specify the IP
address. Port is generally not used more than once in the configuration.
Listen: Enables you to specify both an IP address and a port to bind to. The IP address
can be in the form of a wildcard, and you can have multiple Listen statements in your
configuration file.
Generally, it is a good idea to use only one type of these directives to avoid confusion. Of the three,
Listen is the most flexible, so it is probably the one you want to use the most. A common error
when using Listen is to specify a port on all IP addresses (*:80) as well as that same port on a
specific IP address (1.2.3.4:80), which results in the error from make_sock.
Configuration errors relating to SSL (discussed later in this chapter) commonly result in Apache??™s
not starting properly. Make sure all key and certificate files exist and that they are in the proper
format (use openssl to examine them, as shown later in this chapter).
For other error messages, try doing a Web search to see if somebody else has encountered the
problem. In most cases, you can find a solution within the first few matches.
If you aren??™t getting enough information in the ErrorLog, you can configure it to log more information
using the LogLevel directive.
Pages:
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226