SSH üzerinden apache rebuild işlemi için /scripts/rebuildhttpdconf komutunu girdiğinizde aşağıdaki gibi bir hata alıyorsanız:
The “/usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf.work.eeee1023.cfgcheck -C Include "/usr/local/apache/conf.modules.d/*.conf"” command (process 13754) reported error number 1 when it ended.
httpd_ls_bak: Syntax error in -C/-c directive: Include/IncludeOptional: Could not open directory /usr/local/apache/conf.modules.d: No such file or directory
Rebuilding configuration without any local modifications.
Failed to generate a syntactically correct Apache configuration.
Bad configuration file located at /usr/local/apache/conf/httpd.conf.work.eeee1023
Error:
The “/usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf.work.eeee1023.cfgcheck -C Include "/usr/local/apache/conf.modules.d/*.conf"” command (process 13765) reported error number 1 when it ended.
httpd_ls_bak: Syntax error in -C/-c directive: Include/IncludeOptional: Could not open directory /usr/local/apache/conf.modules.d: No such file or directory
Çözüm yolu için apache2 yi yeniden kurmalıyız. Aşağıdaki komutları sırayla girelim
cd /etc/
mv apache2 apache2bk
yum reinstall ea-apache* -y
/scripts/rebuildhttpdconf
/scripts/restartsrv_httpd
Powered by WHMCompleteSolution