Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chocopuff2020/4ce8c3a629bcf202174d82875ec5cc64 to your computer and use it in GitHub Desktop.
Save chocopuff2020/4ce8c3a629bcf202174d82875ec5cc64 to your computer and use it in GitHub Desktop.
199 #
httpd not running, trying to start
(13)Permission denied: AH00072: make_sock: could not bind to address [::]:80
(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
mdai@scml-mdai:~_www|⇒ sudo vi /private/etc/apache2/httpd.conf
mdai@scml-mdai:~_www|⇒ sudo apachectl restart
mdai@scml-mdai:~_www|⇒ sudo vi /private/etc/apache2/httpd.conf
mdai@scml-mdai:~_www|⇒ sudo apachectl restart
mdai@scml-mdai:~_www|⇒ sudo vi /private/etc/apache2/httpd.conf
mdai@scml-mdai:~_www|⇒ sudo apachectl congigtest
Usage: /usr/sbin/httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|graceful-stop|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]
Options:
-D name : define a name for use in <IfDefine name> directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed vhost settings
-t -D DUMP_RUN_CFG : show parsed run settings
-S : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
-t -D DUMP_MODULES : show all loaded modules
-M : a synonym for -t -D DUMP_MODULES
-t -D DUMP_INCLUDES: show all included configuration files
-t : run syntax check for config files
-T : start without DocumentRoot(s) check
-X : debug mode (only one worker, do not detach)
mdai@scml-mdai:~_www|⇒ sudo apachectl configtest
AH00526: Syntax error on line 224 of /private/etc/apache2/httpd.conf:
Invalid command '\xe2\x80\x82\xe2\x80\x82\xe2\x80\x82\xe2\x80\x82AllowOverride', perhaps misspelled or defined by a module not included in the server configuration
mdai@scml-mdai:~_www|⇒ sudo vi /private/etc/apache2/httpd.conf
mdai@scml-mdai:~_www|⇒ sudo apachectl configtest
AH00526: Syntax error on line 224 of /private/etc/apache2/httpd.conf:
Invalid command '\xe2\x80\x82\xe2\x80\x82\xe2\x80\x82\xe2\x80\x82AllowOverride', perhaps misspelled or defined by a module not included in the server configuration
mdai@scml-mdai:~_www|⇒ sudo vi /private/etc/apache2/httpd.conf
mdai@scml-mdai:~_www|⇒ sudo apachectl configtest
AH00526: Syntax error on line 224 of /private/etc/apache2/httpd.conf:
Invalid command '\xe2\x80\x82\xe2\x80\x82\xe2\x80\x82\xe2\x80\x82AllowOverride', perhaps misspelled or defined by a module not included in the server configuration
mdai@scml-mdai:~_www|⇒ sudo apachectl restart
mdai@scml-mdai:~_www|⇒ sudo vi /private/etc/apache2/httpd.conf
mdai@scml-mdai:~_www|⇒ sudo apachectl restart
mdai@scml-mdai:~_www|⇒ sudo vi /private/etc/apache2/httpd.conf
mdai@scml-mdai:~_www|⇒ sudo apachectl restart
mdai@scml-mdai:~_www|⇒ brew upgrade
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
openapi-generator
==> Updated Formulae
gdbm ✔ convox draco gcovr imagemagick libphonenumber packmol rclone srt wtf
openssl ✔ cppcheck esniper geckodriver imagemagick@6 macvim pipenv ruby-build stern xmake
python ✔ crystal-lang etcd gnu-smalltalk jenkins mitmproxy pkcs11-helper saltstack tectonic xonsh
annie datomic etsh grails jenkins-job-builder modules planck seqtk terragrunt youtube-dl
ansible-lint davix ffmpeg gspell kaitai-struct-compiler nzbget pony-stable simutrans traefik
awscli dcm2niix fluent-bit gtksourceview3 krakend octave pre-commit sip twarc
bitcoin diffoscope folly gtksourceview@4 kubeless offlineimap pypy sourcekitten urh
blackbox direnv fwup hadolint libheif openfortivpn python@2 sourcery [email protected]
clojurescript docker-machine gauge hlint libpeas pacapt quicktype spotbugs wpscan
==> Upgrading 12 outdated packages, with result:
fd 6.3.0 -> 7.0.0, gdbm 1.14.1_1 -> 1.15, git 2.16.1 -> 2.17.1, icu4c 60.2 -> 61.1, node 9.4.0 -> 10.4.1, openssl 1.0.2n -> 1.0.2o_2, perl 5.26.1 -> 5.26.2, python 2.7.14_2 -> 3.6.5_1, ruby 2.5.0 -> 2.5.1, sqlite 3.22.0 -> 3.24.0, vim 8.0.1400_4 -> 8.1.0050, zsh 5.4.2_3 -> 5.5.1
==> Upgrading sqlite
==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.24.0.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring sqlite-3.24.0.sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local,
because macOS provides an older sqlite3.
If you need to have this software first in your PATH run:
echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.zshrc
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/sqlite/lib
CPPFLAGS: -I/usr/local/opt/sqlite/include
==> Summary
🍺 /usr/local/Cellar/sqlite/3.24.0: 11 files, 3.5MB
==> Upgrading openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2o_2.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.2o_2.sierra.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
/usr/local/etc/openssl/certs
and run
/usr/local/opt/openssl/bin/c_rehash
This formula is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.
If you need to have this software first in your PATH run:
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.zshrc
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/openssl/lib
CPPFLAGS: -I/usr/local/opt/openssl/include
==> Summary
🍺 /usr/local/Cellar/openssl/1.0.2o_2: 1,792 files, 12.3MB
==> Upgrading icu4c
==> Downloading https://homebrew.bintray.com/bottles/icu4c-61.1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring icu4c-61.1.sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local,
because macOS provides libicucore.dylib (but nothing else).
If you need to have this software first in your PATH run:
echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.zshrc
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/icu4c/lib
CPPFLAGS: -I/usr/local/opt/icu4c/include
==> Summary
🍺 /usr/local/Cellar/icu4c/61.1: 249 files, 67.2MB
==> Upgrading node
==> Downloading https://homebrew.bintray.com/bottles/node-10.4.1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring node-10.4.1.sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
🍺 /usr/local/Cellar/node/10.4.1: 6,793 files, 59.8MB
==> Upgrading perl
==> Downloading https://homebrew.bintray.com/bottles/perl-5.26.2.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring perl-5.26.2.sierra.bottle.tar.gz
==> Caveats
By default non-brewed cpan modules are installed to the Cellar. If you wish
for your modules to persist across updates we recommend using `local::lib`.
You can set that up like this:
PERL_MM_OPT="INSTALL_BASE=$HOME/perl5" cpan local::lib
echo 'eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib=$HOME/perl5)"' >> ~/.zshrc
==> Summary
🍺 /usr/local/Cellar/perl/5.26.2: 2,399 files, 57.2MB
==> Upgrading python
==> Installing dependencies for python: gdbm, xz
==> Installing python dependency: gdbm
==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.15.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gdbm-1.15.sierra.bottle.tar.gz
🍺 /usr/local/Cellar/gdbm/1.15: 19 files, 569.8KB
==> Installing python dependency: xz
==> Downloading https://homebrew.bintray.com/bottles/xz-5.2.4.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring xz-5.2.4.sierra.bottle.tar.gz
🍺 /usr/local/Cellar/xz/5.2.4: 92 files, 1MB
==> Installing python
==> Downloading https://homebrew.bintray.com/bottles/python-3.6.5_1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring python-3.6.5_1.sierra.bottle.tar.gz
==> /usr/local/Cellar/python/3.6.5_1/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python/3.6.5_1/bin --install-lib=/usr/local/lib/python3.6/site-packages --single-version-externally-m
==> /usr/local/Cellar/python/3.6.5_1/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python/3.6.5_1/bin --install-lib=/usr/local/lib/python3.6/site-packages --single-version-externally-m
==> /usr/local/Cellar/python/3.6.5_1/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python/3.6.5_1/bin --install-lib=/usr/local/lib/python3.6/site-packages --single-version-externally-m
==> Caveats
Python has been installed as
/usr/local/bin/python3
Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
/usr/local/opt/python/libexec/bin
If you need Homebrew's Python 2.7 run
brew install python@2
Pip, setuptools, and wheel have been installed. To update them run
pip3 install --upgrade pip setuptools wheel
You can install Python packages with
pip3 install <package>
They will install into the site-package directory
/usr/local/lib/python3.6/site-packages
See: https://docs.brew.sh/Homebrew-and-Python
==> Summary
🍺 /usr/local/Cellar/python/3.6.5_1: 4,740 files, 99.2MB
==> Upgrading ruby
==> Downloading https://homebrew.bintray.com/bottles/ruby-2.5.1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring ruby-2.5.1.sierra.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/rake
Target /usr/local/bin/rake
already exists. You may want to remove it:
rm '/usr/local/bin/rake'
1 #
2 # This is the main Apache HTTP server configuration file. It contains the
3 # configuration directives that give the server its instructions.
4 # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
5 # In particular, see
6 # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
7 # for a discussion of each configuration directive.
8 #
9 # Do NOT simply read the instructions in here without understanding
10 # what they do. They're here only as hints or reminders. If you are unsure
11 # consult the online docs. You have been warned.
12 #
13 # Configuration and logfile names: If the filenames you specify for many
14 # of the server's control files begin with "/" (or "drive:/" for Win32), the
15 # server will use that explicit path. If the filenames do *not* begin
16 # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
17 # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
18 # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
19 # will be interpreted as '/logs/access_log'.
20
21 #
22 # ServerRoot: The top of the directory tree under which the server's
23 # configuration, error, and log files are kept.
24 #
25 # Do not add a slash at the end of the directory path. If you point
26 # ServerRoot at a non-local disk, be sure to specify a local disk on the
27 # Mutex directive, if file-based mutexes are used. If you wish to share the
28 # same ServerRoot for multiple httpd daemons, you will need to change at
29 # least PidFile.
30 #
31 ServerRoot "/usr"
32
33 #
34 # Mutex: Allows you to set the mutex mechanism and mutex file directory
35 # for individual mutexes, or change the global defaults
36 #
37 # Uncomment and change the directory if mutexes are file-based and the default
38 # mutex file directory is not on a local disk or is not appropriate for some
39 # other reason.
40 #
41 # Mutex default:/private/var/run
42
43 #
44 # Listen: Allows you to bind Apache to specific IP addresses and/or
45 # ports, instead of the default. See also the <VirtualHost>
46 # directive.
47 #
48 # Change this to Listen on specific IP addresses as shown below to
49 # prevent Apache from glomming onto all bound IP addresses.
50 #
51 #Listen 12.34.56.78:80
52 Listen 80
"/private/etc/apache2/httpd.conf" 540L, 20898C
199 #
To force the link and overwrite all conflicting files:
brew link --overwrite ruby
To list all files that would be deleted:
brew link --overwrite --dry-run ruby
Possible conflicting files are:
/usr/local/bin/rake
==> Caveats
Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/ruby
==> Summary
🍺 /usr/local/Cellar/ruby/2.5.1: 16,227 files, 27.5MB
==> Upgrading vim
==> Downloading https://homebrew.bintray.com/bottles/vim-8.1.0050.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring vim-8.1.0050.sierra.bottle.tar.gz
🍺 /usr/local/Cellar/vim/8.1.0050: 1,432 files, 23.3MB
==> Upgrading fd
==> Downloading https://homebrew.bintray.com/bottles/fd-7.0.0.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring fd-7.0.0.sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completions have been installed to:
/usr/local/share/zsh/site-functions
==> Summary
🍺 /usr/local/Cellar/fd/7.0.0: 9 files, 3MB
==> Upgrading zsh
==> Downloading https://homebrew.bintray.com/bottles/zsh-5.5.1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring zsh-5.5.1.sierra.bottle.tar.gz
🍺 /usr/local/Cellar/zsh/5.5.1: 1,444 files, 12MB
==> Upgrading git
1 #
2 # This is the main Apache HTTP server configuration file. It contains the
3 # configuration directives that give the server its instructions.
4 # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
5 # In particular, see
6 # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
7 # for a discussion of each configuration directive.
8 #
9 # Do NOT simply read the instructions in here without understanding
10 # what they do. They're here only as hints or reminders. If you are unsure
11 # consult the online docs. You have been warned.
12 #
13 # Configuration and logfile names: If the filenames you specify for many
14 # of the server's control files begin with "/" (or "drive:/" for Win32), the
15 # server will use that explicit path. If the filenames do *not* begin
16 # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
17 # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
18 # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
19 # will be interpreted as '/logs/access_log'.
20
21 #
22 # ServerRoot: The top of the directory tree under which the server's
23 # configuration, error, and log files are kept.
24 #
25 # Do not add a slash at the end of the directory path. If you point
26 # ServerRoot at a non-local disk, be sure to specify a local disk on the
27 # Mutex directive, if file-based mutexes are used. If you wish to share the
28 # same ServerRoot for multiple httpd daemons, you will need to change at
29 # least PidFile.
30 #
31 ServerRoot "/usr"
32
33 #
34 # Mutex: Allows you to set the mutex mechanism and mutex file directory
35 # for individual mutexes, or change the global defaults
36 #
37 # Uncomment and change the directory if mutexes are file-based and the default
38 # mutex file directory is not on a local disk or is not appropriate for some
39 # other reason.
40 #
41 # Mutex default:/private/var/run
42
43 #
44 # Listen: Allows you to bind Apache to specific IP addresses and/or
45 # ports, instead of the default. See also the <VirtualHost>
46 # directive.
47 #
48 # Change this to Listen on specific IP addresses as shown below to
49 # prevent Apache from glomming onto all bound IP addresses.
50 #
51 #Listen 12.34.56.78:80
52 Listen 80
"/private/etc/apache2/httpd.conf" 543L, 21000C
199 #
==> Downloading https://homebrew.bintray.com/bottles/git-2.17.1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring git-2.17.1.sierra.bottle.tar.gz
==> Caveats
1 #
2 # This is the main Apache HTTP server configuration file. It contains the
3 # configuration directives that give the server its instructions.
4 # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
5 # In particular, see
6 # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
7 # for a discussion of each configuration directive.
8 #
9 # Do NOT simply read the instructions in here without understanding
10 # what they do. They're here only as hints or reminders. If you are unsure
11 # consult the online docs. You have been warned.
12 #
13 # Configuration and logfile names: If the filenames you specify for many
14 # of the server's control files begin with "/" (or "drive:/" for Win32), the
15 # server will use that explicit path. If the filenames do *not* begin
16 # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
17 # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
18 # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
19 # will be interpreted as '/logs/access_log'.
20
21 #
22 # ServerRoot: The top of the directory tree under which the server's
23 # configuration, error, and log files are kept.
24 #
25 # Do not add a slash at the end of the directory path. If you point
26 # ServerRoot at a non-local disk, be sure to specify a local disk on the
27 # Mutex directive, if file-based mutexes are used. If you wish to share the
28 # same ServerRoot for multiple httpd daemons, you will need to change at
29 # least PidFile.
30 #
31 ServerRoot "/usr"
32
33 #
34 # Mutex: Allows you to set the mutex mechanism and mutex file directory
35 # for individual mutexes, or change the global defaults
36 #
37 # Uncomment and change the directory if mutexes are file-based and the default
38 # mutex file directory is not on a local disk or is not appropriate for some
39 # other reason.
40 #
41 # Mutex default:/private/var/run
42
43 #
44 # Listen: Allows you to bind Apache to specific IP addresses and/or
45 # ports, instead of the default. See also the <VirtualHost>
46 # directive.
47 #
48 # Change this to Listen on specific IP addresses as shown below to
49 # prevent Apache from glomming onto all bound IP addresses.
50 #
51 #Listen 12.34.56.78:80
52 Listen 80
"/private/etc/apache2/httpd.conf" 543L, 21001C
199 #
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
1 #
2 # This is the main Apache HTTP server configuration file. It contains the
3 # configuration directives that give the server its instructions.
4 # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
5 # In particular, see
6 # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
7 # for a discussion of each configuration directive.
8 #
9 # Do NOT simply read the instructions in here without understanding
10 # what they do. They're here only as hints or reminders. If you are unsure
11 # consult the online docs. You have been warned.
12 #
13 # Configuration and logfile names: If the filenames you specify for many
14 # of the server's control files begin with "/" (or "drive:/" for Win32), the
15 # server will use that explicit path. If the filenames do *not* begin
16 # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
17 # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
18 # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
19 # will be interpreted as '/logs/access_log'.
20
21 #
22 # ServerRoot: The top of the directory tree under which the server's
23 # configuration, error, and log files are kept.
24 #
25 # Do not add a slash at the end of the directory path. If you point
26 # ServerRoot at a non-local disk, be sure to specify a local disk on the
27 # Mutex directive, if file-based mutexes are used. If you wish to share the
28 # same ServerRoot for multiple httpd daemons, you will need to change at
29 # least PidFile.
30 #
31 ServerRoot "/usr"
32
33 #
34 # Mutex: Allows you to set the mutex mechanism and mutex file directory
35 # for individual mutexes, or change the global defaults
36 #
37 # Uncomment and change the directory if mutexes are file-based and the default
38 # mutex file directory is not on a local disk or is not appropriate for some
39 # other reason.
40 #
41 # Mutex default:/private/var/run
42
43 #
44 # Listen: Allows you to bind Apache to specific IP addresses and/or
45 # ports, instead of the default. See also the <VirtualHost>
46 # directive.
47 #
48 # Change this to Listen on specific IP addresses as shown below to
49 # prevent Apache from glomming onto all bound IP addresses.
50 #
51 #Listen 12.34.56.78:80
52 Listen 80
"/private/etc/apache2/httpd.conf" 542L, 20970C
199 #
zsh completions and functions have been installed to:
/usr/local/share/zsh/site-functions
Emacs Lisp files have been installed to:
1 #
2 # This is the main Apache HTTP server configuration file. It contains the
3 # configuration directives that give the server its instructions.
4 # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
5 # In particular, see
6 # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
7 # for a discussion of each configuration directive.
8 #
9 # Do NOT simply read the instructions in here without understanding
10 # what they do. They're here only as hints or reminders. If you are unsure
11 # consult the online docs. You have been warned.
12 #
13 # Configuration and logfile names: If the filenames you specify for many
14 # of the server's control files begin with "/" (or "drive:/" for Win32), the
15 # server will use that explicit path. If the filenames do *not* begin
16 # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
17 # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
18 # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
19 # will be interpreted as '/logs/access_log'.
20
21 #
22 # ServerRoot: The top of the directory tree under which the server's
23 # configuration, error, and log files are kept.
24 #
25 # Do not add a slash at the end of the directory path. If you point
26 # ServerRoot at a non-local disk, be sure to specify a local disk on the
27 # Mutex directive, if file-based mutexes are used. If you wish to share the
28 # same ServerRoot for multiple httpd daemons, you will need to change at
29 # least PidFile.
30 #
31 ServerRoot "/usr"
32
33 #
34 # Mutex: Allows you to set the mutex mechanism and mutex file directory
35 # for individual mutexes, or change the global defaults
36 #
37 # Uncomment and change the directory if mutexes are file-based and the default
38 # mutex file directory is not on a local disk or is not appropriate for some
39 # other reason.
40 #
41 # Mutex default:/private/var/run
42
43 #
44 # Listen: Allows you to bind Apache to specific IP addresses and/or
45 # ports, instead of the default. See also the <VirtualHost>
46 # directive.
47 #
48 # Change this to Listen on specific IP addresses as shown below to
49 # prevent Apache from glomming onto all bound IP addresses.
50 #
51 #Listen 12.34.56.78:80
52 Listen 80
"/private/etc/apache2/httpd.conf" 542L, 20970C
199 #
/usr/local/share/emacs/site-lisp/git
==> Summary
🍺 /usr/local/Cellar/git/2.17.1: 1,501 files, 35.6MB
mdai@scml-mdai:~_www|⇒ sudo apachectl restart
1 #
2 # This is the main Apache HTTP server configuration file. It contains the
3 # configuration directives that give the server its instructions.
4 # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
5 # In particular, see
6 # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
7 # for a discussion of each configuration directive.
8 #
9 # Do NOT simply read the instructions in here without understanding
10 # what they do. They're here only as hints or reminders. If you are unsure
11 # consult the online docs. You have been warned.
12 #
13 # Configuration and logfile names: If the filenames you specify for many
14 # of the server's control files begin with "/" (or "drive:/" for Win32), the
15 # server will use that explicit path. If the filenames do *not* begin
16 # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
17 # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
18 # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
19 # will be interpreted as '/logs/access_log'.
20
21 #
22 # ServerRoot: The top of the directory tree under which the server's
23 # configuration, error, and log files are kept.
24 #
25 # Do not add a slash at the end of the directory path. If you point
26 # ServerRoot at a non-local disk, be sure to specify a local disk on the
27 # Mutex directive, if file-based mutexes are used. If you wish to share the
28 # same ServerRoot for multiple httpd daemons, you will need to change at
29 # least PidFile.
30 #
31 ServerRoot "/usr"
32
33 #
34 # Mutex: Allows you to set the mutex mechanism and mutex file directory
35 # for individual mutexes, or change the global defaults
36 #
37 # Uncomment and change the directory if mutexes are file-based and the default
38 # mutex file directory is not on a local disk or is not appropriate for some
39 # other reason.
40 #
41 # Mutex default:/private/var/run
42
43 #
44 # Listen: Allows you to bind Apache to specific IP addresses and/or
45 # ports, instead of the default. See also the <VirtualHost>
46 # directive.
47 #
48 # Change this to Listen on specific IP addresses as shown below to
49 # prevent Apache from glomming onto all bound IP addresses.
50 #
51 #Listen 12.34.56.78:80
52 Listen 80
/LoadModule rewrite_module
143 #LoadModule ssl_module libexec/apache2/mod_ssl.so
mdai@scml-mdai:~_www|⇒ sudo vi /private/etc/apache2/httpd.conf
mdai@scml-mdai:~_www|⇒ sudo apachectl restart
mdai@scml-mdai:~_www|⇒ sudo apachectl start
/System/Library/LaunchDaemons/org.apache.httpd.plist: service already loaded
mdai@scml-mdai:~_www|⇒ sudo apachectl steop
Usage: /usr/sbin/httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|graceful-stop|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]
Options:
-D name : define a name for use in <IfDefine name> directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed vhost settings
-t -D DUMP_RUN_CFG : show parsed run settings
-S : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
-t -D DUMP_MODULES : show all loaded modules
-M : a synonym for -t -D DUMP_MODULES
-t -D DUMP_INCLUDES: show all included configuration files
-t : run syntax check for config files
-T : start without DocumentRoot(s) check
-X : debug mode (only one worker, do not detach)
mdai@scml-mdai:~_www|⇒ sudo apachectl stop
mdai@scml-mdai:~_www|⇒ sudo apachectl start
1 #
2 # This is the main Apache HTTP server configuration file. It contains the
3 # configuration directives that give the server its instructions.
4 # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
5 # In particular, see
6 # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
7 # for a discussion of each configuration directive.
8 #
9 # Do NOT simply read the instructions in here without understanding
10 # what they do. They're here only as hints or reminders. If you are unsure
11 # consult the online docs. You have been warned.
12 #
13 # Configuration and logfile names: If the filenames you specify for many
14 # of the server's control files begin with "/" (or "drive:/" for Win32), the
15 # server will use that explicit path. If the filenames do *not* begin
16 # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
17 # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
18 # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
19 # will be interpreted as '/logs/access_log'.
20
21 #
22 # ServerRoot: The top of the directory tree under which the server's
23 # configuration, error, and log files are kept.
24 #
25 # Do not add a slash at the end of the directory path. If you point
26 # ServerRoot at a non-local disk, be sure to specify a local disk on the
27 # Mutex directive, if file-based mutexes are used. If you wish to share the
28 # same ServerRoot for multiple httpd daemons, you will need to change at
29 # least PidFile.
30 #
31 ServerRoot "/usr"
32
33 #
34 # Mutex: Allows you to set the mutex mechanism and mutex file directory
35 # for individual mutexes, or change the global defaults
36 #
37 # Uncomment and change the directory if mutexes are file-based and the default
38 # mutex file directory is not on a local disk or is not appropriate for some
39 # other reason.
40 #
41 # Mutex default:/private/var/run
42
43 #
44 # Listen: Allows you to bind Apache to specific IP addresses and/or
45 # ports, instead of the default. See also the <VirtualHost>
46 # directive.
47 #
48 # Change this to Listen on specific IP addresses as shown below to
49 # prevent Apache from glomming onto all bound IP addresses.
50 #
51 #Listen 12.34.56.78:80
52 Listen 80
-- VISUAL --
491 # necessary.
492
493 # Server-pool management (MPM specific)
494 Include /private/etc/apache2/extra/httpd-mpm.conf
495
496 # Multi-language error messages
497 #Include /private/etc/apache2/extra/httpd-multilang-errordoc.conf
498
499 # Fancy directory listings
500 Include /private/etc/apache2/extra/httpd-autoindex.conf
501
502 # Language settings
503 #Include /private/etc/apache2/extra/httpd-languages.conf
504
505 # User home directories
506 #Include /private/etc/apache2/extra/httpd-userdir.conf
507
508 # Real-time info on requests and configuration
509 #Include /private/etc/apache2/extra/httpd-info.conf
510
511 # Virtual hosts
512 #Include /private/etc/apache2/extra/httpd-vhosts.conf
513
514 # Local access to the Apache HTTP Server Manual
515 #Include /private/etc/apache2/extra/httpd-manual.conf
516
517 # Distributed authoring and versioning (WebDAV)
518 #Include /private/etc/apache2/extra/httpd-dav.conf
519
520 # Various default settings
521 #Include /private/etc/apache2/extra/httpd-default.conf
522
523 # Configure mod_proxy_html to understand HTML4/XHTML1
524 <IfModule proxy_html_module>
525 Include /private/etc/apache2/extra/proxy-html.conf
526 </IfModule>
527
528 # Secure (SSL/TLS) connections
529 #Include /private/etc/apache2/extra/httpd-ssl.conf
530 #
531 # Note: The following must must be present to support
532 # starting without SSL on platforms with no /dev/random equivalent
533 # but a statically compiled-in mod_ssl.
534 #
535 <IfModule ssl_module>
536 SSLRandomSeed startup builtin
537 SSLRandomSeed connect builtin
538 </IfModule>
539
540 Include /private/etc/apache2/other/*.conf
541
542
1 #
2 # This is the main Apache HTTP server configuration file. It contains the
3 # configuration directives that give the server its instructions.
4 # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
5 # In particular, see
6 # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
7 # for a discussion of each configuration directive.
8 #
9 # Do NOT simply read the instructions in here without understanding
10 # what they do. They're here only as hints or reminders. If you are unsure
11 # consult the online docs. You have been warned.
12 #
13 # Configuration and logfile names: If the filenames you specify for many
14 # of the server's control files begin with "/" (or "drive:/" for Win32), the
15 # server will use that explicit path. If the filenames do *not* begin
16 # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
17 # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
18 # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
19 # will be interpreted as '/logs/access_log'.
20
21 #
22 # ServerRoot: The top of the directory tree under which the server's
23 # configuration, error, and log files are kept.
24 #
25 # Do not add a slash at the end of the directory path. If you point
26 # ServerRoot at a non-local disk, be sure to specify a local disk on the
27 # Mutex directive, if file-based mutexes are used. If you wish to share the
28 # same ServerRoot for multiple httpd daemons, you will need to change at
29 # least PidFile.
30 #
31 ServerRoot "/usr"
32
33 #
34 # Mutex: Allows you to set the mutex mechanism and mutex file directory
35 # for individual mutexes, or change the global defaults
36 #
37 # Uncomment and change the directory if mutexes are file-based and the default
38 # mutex file directory is not on a local disk or is not appropriate for some
39 # other reason.
40 #
41 # Mutex default:/private/var/run
42
43 #
44 # Listen: Allows you to bind Apache to specific IP addresses and/or
45 # ports, instead of the default. See also the <VirtualHost>
46 # directive.
47 #
48 # Change this to Listen on specific IP addresses as shown below to
49 # prevent Apache from glomming onto all bound IP addresses.
50 #
51 #Listen 12.34.56.78:80
52 Listen 80
491 # necessary.
492
493 # Server-pool management (MPM specific)
494 Include /private/etc/apache2/extra/httpd-mpm.conf
495
496 # Multi-language error messages
497 #Include /private/etc/apache2/extra/httpd-multilang-errordoc.conf
498
499 # Fancy directory listings
500 Include /private/etc/apache2/extra/httpd-autoindex.conf
501
502 # Language settings
503 #Include /private/etc/apache2/extra/httpd-languages.conf
504
505 # User home directories
506 #Include /private/etc/apache2/extra/httpd-userdir.conf
507
508 # Real-time info on requests and configuration
509 #Include /private/etc/apache2/extra/httpd-info.conf
510
511 # Virtual hosts
512 #Include /private/etc/apache2/extra/httpd-vhosts.conf
513
514 # Local access to the Apache HTTP Server Manual
515 #Include /private/etc/apache2/extra/httpd-manual.conf
516
517 # Distributed authoring and versioning (WebDAV)
518 #Include /private/etc/apache2/extra/httpd-dav.conf
519
520 # Various default settings
521 #Include /private/etc/apache2/extra/httpd-default.conf
522
523 # Configure mod_proxy_html to understand HTML4/XHTML1
524 <IfModule proxy_html_module>
525 Include /private/etc/apache2/extra/proxy-html.conf
526 </IfModule>
527
528 # Secure (SSL/TLS) connections
529 #Include /private/etc/apache2/extra/httpd-ssl.conf
530 #
531 # Note: The following must must be present to support
532 # starting without SSL on platforms with no /dev/random equivalent
533 # but a statically compiled-in mod_ssl.
534 #
535 <IfModule ssl_module>
536 SSLRandomSeed startup builtin
537 SSLRandomSeed connect builtin
538 </IfModule>
539
540 Include /private/etc/apache2/other/*.conf
541
542
1 #
2 # This is the main Apache HTTP server configuration file. It contains the
3 # configuration directives that give the server its instructions.
4 # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
5 # In particular, see
6 # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
7 # for a discussion of each configuration directive.
8 #
9 # Do NOT simply read the instructions in here without understanding
10 # what they do. They're here only as hints or reminders. If you are unsure
11 # consult the online docs. You have been warned.
12 #
13 # Configuration and logfile names: If the filenames you specify for many
14 # of the server's control files begin with "/" (or "drive:/" for Win32), the
15 # server will use that explicit path. If the filenames do *not* begin
16 # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
17 # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
18 # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
19 # will be interpreted as '/logs/access_log'.
20
21 #
22 # ServerRoot: The top of the directory tree under which the server's
23 # configuration, error, and log files are kept.
24 #
25 # Do not add a slash at the end of the directory path. If you point
26 # ServerRoot at a non-local disk, be sure to specify a local disk on the
27 # Mutex directive, if file-based mutexes are used. If you wish to share the
28 # same ServerRoot for multiple httpd daemons, you will need to change at
29 # least PidFile.
30 #
31 ServerRoot "/usr"
32
33 #
34 # Mutex: Allows you to set the mutex mechanism and mutex file directory
35 # for individual mutexes, or change the global defaults
36 #
37 # Uncomment and change the directory if mutexes are file-based and the default
38 # mutex file directory is not on a local disk or is not appropriate for some
39 # other reason.
40 #
41 # Mutex default:/private/var/run
42
43 #
44 # Listen: Allows you to bind Apache to specific IP addresses and/or
45 # ports, instead of the default. See also the <VirtualHost>
46 # directive.
47 #
48 # Change this to Listen on specific IP addresses as shown below to
49 # prevent Apache from glomming onto all bound IP addresses.
50 #
51 #Listen 12.34.56.78:80
52 Listen 80
-- VISUAL --
491 # necessary.
492
493 # Server-pool management (MPM specific)
494 Include /private/etc/apache2/extra/httpd-mpm.conf
495
496 # Multi-language error messages
497 #Include /private/etc/apache2/extra/httpd-multilang-errordoc.conf
498
499 # Fancy directory listings
500 Include /private/etc/apache2/extra/httpd-autoindex.conf
501
502 # Language settings
503 #Include /private/etc/apache2/extra/httpd-languages.conf
504
505 # User home directories
506 #Include /private/etc/apache2/extra/httpd-userdir.conf
507
508 # Real-time info on requests and configuration
509 #Include /private/etc/apache2/extra/httpd-info.conf
510
511 # Virtual hosts
512 #Include /private/etc/apache2/extra/httpd-vhosts.conf
513
514 # Local access to the Apache HTTP Server Manual
515 #Include /private/etc/apache2/extra/httpd-manual.conf
516
517 # Distributed authoring and versioning (WebDAV)
518 #Include /private/etc/apache2/extra/httpd-dav.conf
519
520 # Various default settings
521 #Include /private/etc/apache2/extra/httpd-default.conf
522
523 # Configure mod_proxy_html to understand HTML4/XHTML1
524 <IfModule proxy_html_module>
525 Include /private/etc/apache2/extra/proxy-html.conf
526 </IfModule>
527
528 # Secure (SSL/TLS) connections
529 #Include /private/etc/apache2/extra/httpd-ssl.conf
530 #
531 # Note: The following must must be present to support
532 # starting without SSL on platforms with no /dev/random equivalent
533 # but a statically compiled-in mod_ssl.
534 #
535 <IfModule ssl_module>
536 SSLRandomSeed startup builtin
537 SSLRandomSeed connect builtin
538 </IfModule>
539
540 Include /private/etc/apache2/other/*.conf
541
542
-- VISUAL --
96 #LoadModule echo_module libexec/apache2/mod_echo.so
mdai@scml-mdai:~_www|⇒ sudo apachectl configtest
AH00526: Syntax error on line 224 of /private/etc/apache2/httpd.conf:
Invalid command '\xe2\x80\x82\xe2\x80\x82\xe2\x80\x82\xe2\x80\x82AllowOverride', perhaps misspelled or defined by a module not included in the server configuration
mdai@scml-mdai:~_www|⇒ sudo vi /private/etc/apache2/httpd.conf
1 #
2 # This is the main Apache HTTP server configuration file. It contains the
3 # configuration directives that give the server its instructions.
4 # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
5 # In particular, see
6 # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
7 # for a discussion of each configuration directive.
8 #
9 # Do NOT simply read the instructions in here without understanding
10 # what they do. They're here only as hints or reminders. If you are unsure
11 # consult the online docs. You have been warned.
12 #
13 # Configuration and logfile names: If the filenames you specify for many
14 # of the server's control files begin with "/" (or "drive:/" for Win32), the
15 # server will use that explicit path. If the filenames do *not* begin
16 # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
17 # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
18 # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
19 # will be interpreted as '/logs/access_log'.
20
21 #
22 # ServerRoot: The top of the directory tree under which the server's
23 # configuration, error, and log files are kept.
24 #
25 # Do not add a slash at the end of the directory path. If you point
26 # ServerRoot at a non-local disk, be sure to specify a local disk on the
27 # Mutex directive, if file-based mutexes are used. If you wish to share the
28 # same ServerRoot for multiple httpd daemons, you will need to change at
29 # least PidFile.
30 #
31 ServerRoot "/usr"
32
33 #
34 # Mutex: Allows you to set the mutex mechanism and mutex file directory
35 # for individual mutexes, or change the global defaults
36 #
37 # Uncomment and change the directory if mutexes are file-based and the default
38 # mutex file directory is not on a local disk or is not appropriate for some
39 # other reason.
40 #
41 # Mutex default:/private/var/run
42
43 #
44 # Listen: Allows you to bind Apache to specific IP addresses and/or
45 # ports, instead of the default. See also the <VirtualHost>
46 # directive.
47 #
48 # Change this to Listen on specific IP addresses as shown below to
49 # prevent Apache from glomming onto all bound IP addresses.
50 #
51 #Listen 12.34.56.78:80
52 Listen 80
"/private/etc/apache2/httpd.conf" 542L, 20969C
199 #
mdai@scml-mdai:~_www|⇒ sudo apachectl configtest
AH00526: Syntax error on line 224 of /private/etc/apache2/httpd.conf:
Invalid command '\xe2\x80\x82\xe2\x80\x82\xe2\x80\x82\xe2\x80\x82#AllowOverride', perhaps misspelled or defined by a module not included in the server configuration
mdai@scml-mdai:~_www|⇒ sudo vi /private/etc/apache2/httpd.conf
mdai@scml-mdai:~_www|⇒ sudo apachectl configtest
Syntax OK
mdai@scml-mdai:~_www|⇒ sudo vi /private/etc/apache2/httpd.conf
mdai@scml-mdai:~_www|⇒ sudo apachectl configtest
Syntax OK
mdai@scml-mdai:~_www|⇒ sudo apachectl restart
1 #
2 # This is the main Apache HTTP server configuration file. It contains the
3 # configuration directives that give the server its instructions.
4 # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
5 # In particular, see
6 # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
7 # for a discussion of each configuration directive.
8 #
9 # Do NOT simply read the instructions in here without understanding
10 # what they do. They're here only as hints or reminders. If you are unsure
11 # consult the online docs. You have been warned.
12 #
13 # Configuration and logfile names: If the filenames you specify for many
14 # of the server's control files begin with "/" (or "drive:/" for Win32), the
15 # server will use that explicit path. If the filenames do *not* begin
16 # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
17 # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
18 # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
19 # will be interpreted as '/logs/access_log'.
20
21 #
22 # ServerRoot: The top of the directory tree under which the server's
23 # configuration, error, and log files are kept.
24 #
25 # Do not add a slash at the end of the directory path. If you point
26 # ServerRoot at a non-local disk, be sure to specify a local disk on the
27 # Mutex directive, if file-based mutexes are used. If you wish to share the
28 # same ServerRoot for multiple httpd daemons, you will need to change at
29 # least PidFile.
30 #
31 ServerRoot "/usr"
32
33 #
34 # Mutex: Allows you to set the mutex mechanism and mutex file directory
35 # for individual mutexes, or change the global defaults
36 #
37 # Uncomment and change the directory if mutexes are file-based and the default
38 # mutex file directory is not on a local disk or is not appropriate for some
39 # other reason.
40 #
41 # Mutex default:/private/var/run
42
43 #
44 # Listen: Allows you to bind Apache to specific IP addresses and/or
45 # ports, instead of the default. See also the <VirtualHost>
46 # directive.
47 #
48 # Change this to Listen on specific IP addresses as shown below to
49 # prevent Apache from glomming onto all bound IP addresses.
50 #
51 #Listen 12.34.56.78:80
52 Listen 80
"/private/etc/apache2/httpd.conf" 542L, 20968C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment