如果您刚刚完成了
DirectAdmin安装并正在尝试启动apache,但出现错误:
Syntax error on line 21 of /etc/httpd/conf/extra/httpd-vhosts.conf: Could not open configuration file /etc/httpd/conf/ips.conf: No such file or directory
这意味着缺少ips.conf。 原因通常是DirectAdmin安装实际上没有完成。
要完成安装,请输入:
cd /usr/local/directadmin
./directadmin i
./directadmin p
这是DA安装的最后一步。 这一步有可能失败,因此不会创建ips.conf。 解决显示的错误,然后再次运行以完成安装。
通常的原因是不兼容的二进制文件(请参阅下面的链接)或在/usr/local/directadmin/scripts/setup.txt中设置的无效选项。
另一个原因是如果custombuild中的某些东西没有正确编译。 键入以下内容:
cd /usr/local/directadmin/custombuild
./build all d
如果过早停止,请检查最后几页输出中的错误。