Issue #
Saat mencoba rebuild file konfigurasi Apache di cPanel, muncul error seperti berikut.
root@server [~]# /scripts/rebuildhttpdconf
Initial configuration generation failed with the following message:
The “/usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf.work.0804ff6d.cfgcheck -C Include "/usr/
local/apache/conf.modules.d/*.conf"” command (process 1063594) reported error number 1 when it ended.
httpd: Syntax error in -C/-c directive: Include/IncludeOptional: Could not open directory /usr/local/apache/
conf.modules.d: No such file or directory
Solution #
Untuk mengatasi masalah tersebut lakukan langkah-langkah berikut ini.
Periksa dan update Apache.
yum update ea-apache24
Kemudian reinstall package ea-apache24-config-runtime
.
rpm -e --nodeps --justdb ea-apache24-config-runtime.noarch
yum install ea-apache24-config-runtime.noarch
Setelah package terinstall, coba kembali rebuild file konfigurasi dan restart service Apache.
/scripts/rebuildhttpdconf && /scripts/restartsrv_apache