<分区>
我安装了新版本的 Apache 服务器,我使用诸如 --with-PACKAGE
之类的选项将 Apache 配置为使用包的自定义路径,但 Apache 已经安装。如何更改包的路径?
<分区>
我安装了新版本的 Apache 服务器,我使用诸如 --with-PACKAGE
之类的选项将 Apache 配置为使用包的自定义路径,但 Apache 已经安装。如何更改包的路径?
最佳答案
使用 ./configure
执行此操作的标准方法如下:
./configure ... --with-PACKAGE=<folder>
例如:
./configure --with-ssl=/usr/local
如果您的包刚刚移动到另一个位置(即它不再在原来的位置),只需重新启动 Apache 即可。如果没有,检查 ldd
的输出:
ldd /path/to/httpd
有时 /usr/local/lib
默认情况下未为链接器启用;您可以将其添加到 /etc/ld.so.conf
或 /etc/ld.so.conf.d/
- 取决于您的偏好。之后您必须运行 lconfig
来提交更改。
关于linux - 如何更改 Apache 中包的路径?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10973276/