directadmin

如果您刚刚完成了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 directo

/etc/httpd/conf/extra/httpd-vhosts.conf第21行的语法错误:无法打开配置文件/e

来源:梦飞科技 作者:梦飞 浏览量:202 更新:2018-04-16
如果您刚刚完成了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

如果过早停止,请检查最后几页输出中的错误。
部分文章来源与网络,若有侵权请联系站长删除!