Нужно заварить, чтобы перезаписать / usr / local / etc / httpd / - PullRequest
0 голосов
/ 16 марта 2019

Я изо всех сил пытаюсь получить чистую переустановку httpd.

Я изменил ServerRoot вместо DocumentRoot и не помню исходное значение.

Никакая комбинация brew uninstall httpd / brew reinstall --force httpd фактически не удаляет файлы в каталогах / usr / local. Или перезаписать их по умолчанию из новой установки.

Я не уверен, должен ли я удалить их сам.

Но в основном я пытаюсь полностью установить httpd.

Заранее спасибо.

1 Ответ

0 голосов
/ 17 марта 2019

Я сделал эти шаги, и одна или их комбинация устранили проблему.

cd /usr/local/etc/httpd
mkdir ~/httpd
mv * ~/httpd
brew install -s -f -v  httpd

RBAINDOU-M-4116:httpd robert$ cat httpd.conf | grep -i root
# with "/", the value of ServerRoot is prepended -- so "logs/access_log"
# with ServerRoot set to "/usr/local/apache2" will be interpreted by the
# ServerRoot: The top of the directory tree under which the server's
# ServerRoot at a non-local disk, be sure to specify a local disk on the
# same ServerRoot for multiple httpd daemons, you will need to change at
ServerRoot "/usr/local/opt/httpd"
# httpd as root initially and it will switch.
# DocumentRoot: The directory out of which you will serve your
DocumentRoot "/usr/local/var/www"
    # access content that does not live under the DocumentRoot.
RBAINDOU-M-4116:httpd robert$
...