Symptoms
When trying to rebuild the Apache configuration file, the rebuild will fail and return an error similar to one of the following:
CONFIG_TEXT: Syntax error in -C/-c directive: Include/IncludeOptional: Could not open directory /usr/local/apache/conf.modules.d: No such file or directory
CONFIG_TEXT: Syntax error in -C/-c directive: Include/IncludeOptional: No matches for the wildcard '*.conf' in '/usr/local/apache/conf.modules.d', failing
Cause
The /usr/local/apache/conf.modules.d directory or its contents are missing.
Resolution
Reinstalling the Apache Config Runtime package should resolve this error.
- Log in to the server via SSH or WHM's Terminal as the
rootuser Remove the ea-apache24-config-runtime package from the server:
# rpm -e --nodeps --justdb ea-apache24-config-runtime.noarch
Reinstall the ea-apache24-config-runtime package:
# yum install ea-apache24-config-runtime.noarch
Rebuild the Apache config and restart the service:
# /scripts/rebuildhttpdconf && /scripts/restartsrv_apache
- Log in to the server via SSH or WHM's Terminal as the
rootuser Remove the ea-apache24 and ea-apache24-config-runtime packages from the server:
# dpkg -P --force-depends ea-apache24-config-runtime
# dpkg -P --force-depends ea-apache24
Reinstall the packages:
# apt install ea-apache24 ea-apache24-config-runtime
Rebuild the Apache config and restart the service:
# /scripts/rebuildhttpdconf && /scripts/restartsrv_apache
Comments
0 comments
Article is closed for comments.