build_apache_conf fails trying to open conf.d
I'm getting the following error when trying to rebuild my Apache config with EA3 (WHM 62.0 (build 35)):
I initially encountered this when I edited one of the include files via WHM (just adding a Passenger-related directive, nothing mentioning conf.d) and reverting that change makes no difference. As far as I can tell /usr/local/apache/conf/conf.d has never existed and isn't mentioned anywhere in /usr/local/apache or in /var/cpanel/templates. It seems to be coming from this block in /var/cpanel/templates/apache2/main.default:
But I'm not sure where main.include.items is populated from. Can anyone point me in the right direction?
# /usr/local/cpanel/bin/build_apache_conf
Initial configuration generation failed with the following message:
The "/usr/local/apache/bin/httpd" command (process 491969) reported error number 1 when it ended.
Configuration problem detected on line 45 of file /usr/local/apache/conf/httpd.conf.work.UX6x7wN0: : Could not open config directory /usr/local/apache/conf/conf.d: No such file or directory
--- /usr/local/apache/conf/httpd.conf.work.UX6x7wN0 ---
39
40
41Include "/usr/local/apache/conf/modhostinglimits.conf"
42Include "/usr/local/apache/conf/php.conf"
43Include "/usr/local/apache/conf/modsec2.conf"
44Include "/usr/local/apache/conf/includes/errordocument.conf"
45 ===> Include "/usr/local/apache/conf/conf.d/*.conf" <===
46
47
48ErrorLog "logs/error_log"
49ScriptAliasMatch ^/?controlpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
50ScriptAliasMatch ^/?cpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
51ScriptAliasMatch ^/?kpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
--- /usr/local/apache/conf/httpd.conf.work.UX6x7wN0 ---
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.UX6x7wN0
Error:
The "/usr/local/apache/bin/httpd" command (process 492004) reported error number 1 when it ended.
Configuration problem detected on line 45 of file /usr/local/apache/conf/httpd.conf.work.UX6x7wN0: : Could not open config directory /usr/local/apache/conf/conf.d: No such file or directory
--- /usr/local/apache/conf/httpd.conf.work.UX6x7wN0 ---
39
40
41Include "/usr/local/apache/conf/modhostinglimits.conf"
42Include "/usr/local/apache/conf/php.conf"
43Include "/usr/local/apache/conf/modsec2.conf"
44Include "/usr/local/apache/conf/includes/errordocument.conf"
45 ===> Include "/usr/local/apache/conf/conf.d/*.conf" <===
46
47
48ErrorLog "logs/error_log"
49ScriptAliasMatch ^/?controlpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
50ScriptAliasMatch ^/?cpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
51ScriptAliasMatch ^/?kpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
--- /usr/local/apache/conf/httpd.conf.work.UX6x7wN0 ---
I initially encountered this when I edited one of the include files via WHM (just adding a Passenger-related directive, nothing mentioning conf.d) and reverting that change makes no difference. As far as I can tell /usr/local/apache/conf/conf.d has never existed and isn't mentioned anywhere in /usr/local/apache or in /var/cpanel/templates. It seems to be coming from this block in /var/cpanel/templates/apache2/main.default:
[% FOREACH dir IN main.include.items -%]
Include [% dir.include %]
[% END -%]
But I'm not sure where main.include.items is populated from. Can anyone point me in the right direction?
-
Hello, Could you open a support ticket using the link in my signature so we can take a closer look to see how Apache has been configured? Thank you. 0
Please sign in to leave a comment.
Comments
1 comment