/usr/local/apache/conf.modules.d: No such file or directory Hatasının Çözümü
/usr/local/apache/conf.modules.d: hatası Cloudlinux yüklü olan sunucularda ortaya çıkmaktadır. Cloudlinux yüklü olmayan bir sunucuda daha karşılaşmadım. Bununla alakalı Türkçe kaynak maalesef bulamamaktayız.
Hata nedir?
Initial configuration generation failed with the following message:
The “/usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf.work.7f3ce1df.cfgcheck -C Include "/usr/local/apache/conf.modules.d/*.conf"” command (process xxxx) 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
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.xxxxx
Error:
The “/usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf.work.xxxxx.cfgcheck -C Include "/usr/local/apache/conf.modules.d/*.conf"” command (process xxxx) 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
Hatanın Çözümü nedir?
Çook basit hata çözümü var bunun. Easy Apache 4 e ait Config runtime modülü hata düşüyor. SSH a aşağıdaki kodu girmeniz yeterli olacaktır.
yum reinstall ea-apache24-config-runtime.noarch