需要brew来覆盖/ usr / local / etc / httpd /

问题描述 投票:0回答:1

我正在努力获得一个干净的重新安装httpd。

我修改了ServerRoot而不是DocumentRoot,并且不记得原始值。

brew uninstall httpd / brew reinstall --force httpd的组合实际上没有删除/ usr / local目录中的文件。或者使用新安装中的默认值覆盖它们。

我不确定自己是否应该删除它们。

但基本上我要做的是彻底清新安装httpd。

提前致谢。

macos apache homebrew httpd.conf
1个回答
0
投票

我做了这些步骤,一个或他们的组合解决了这个问题。

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$
© www.soinside.com 2019 - 2024. All rights reserved.