Starting the Apache Server Manually

[-C "directive"] [-c "directive"] [-k start|restart|graceful|stop] [-v] [-V] [-h] [-l] [-L] [-t]

Options: -D name -d directory -f file

-C "directive" -c "directive"

define a name for use in <IfDefine name> directives specify an alternate initial ServerRoot specify an alternate ServerConfigFile process directive before reading config files process directive after reading config files show startup errors of level (see LogLevel)

log startup errors to file show version number show compile settings list available command line options (this page) list compiled in modules list available configuration directives show parsed settings (currently only vhost settings)


: run syntax check for config files

Other options include listing Apache's static modules, or special, built-in independent parts of the server, along with options that can be used with the modules. These options are called configuration directives and are commands that control how a static module works. Note that Apache also includes nearly 50 dynamic modules, or software portions of the server that can be optionally loaded and used while the server is running.

The -t option is used to check your configuration files. It's a good idea to run this check before restarting your server, especially if you've made changes to your configuration files. Such tests are important because a configuration file error can result in your server shutting down when you try to restart it.

Was this article helpful?

0 0

Post a comment