Failed to generate a syntactically correct Apache configuration
Hello,
I used the command
to rebuild HTTPD for certain changes that I wanted to take effect. After that I am getting the following errors:
I would appreciate your insight on this. Thank you
/scripts/rebuildhttpdconf
to rebuild HTTPD for certain changes that I wanted to take effect. After that I am getting the following errors:
[root@magic ~]# /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.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
I would appreciate your insight on this. Thank you
-
This is what I did to fix the problem. Thought it might be useful for someone else who is facing the same issue. # cd /etc/ # mv apache2 apache2bk # yum reinstall ea-apache* -y # /scripts/rebuildhttpdconf # /scripts/restartsrv_httpd
0 -
Hello, I'm really glad that you were able to resolve the issue. This happens when there is an issue with the copy of the httpd.conf litespeed makes (httpd_ls_bak) is incorrect. Thank you for providing the steps you too to resolve the issue. 0 -
Hello, I'm really glad that you were able to resolve the issue. This happens when there is an issue with the copy of the httpd.conf litespeed makes (httpd_ls_bak) is incorrect. Thank you for providing the steps you too to resolve the issue.
thank you very much it work <30
Please sign in to leave a comment.
Comments
3 comments