一台DirectAdmin机器,之前跑的是litespeed,后期改回自带的Apache后无法启动。
一、错误提示字符:
Syntax error on line 1 of /etc/httpd/conf/extra/mod_lsapi.conf
之前没认真留意lsapi,脑子默认为lsmod,所以忽略了,重新build编译时突然看到一串字符
httpd: Syntax error on line 163 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf/extra/httpd-includes.conf: Syntax error on line 1 of /etc/httpd/conf/extra/mod_lsapi.conf: Cannot load /usr/lib/apache/mod_lsapi.so into server: /usr/lib/apache/mod_lsapi.so: cannot open shared object file: No such file or directory
于是感觉这个是设置遗留问题,httpd-includes.conf内调用了之前litespeed依赖的mod_lsapi。
二、解决方案
1、检查DA配置设置
vi /usr/local/directadmin/custombuild/options.conf
php1版本 lsphp 改suphp
2、再次重新编译
cd /usr/local/directadmin/custombuild
./build update
./build apache
然后就没有然后了。