Update, I tried to rebuild apache and there was an error on line 10 of the pre_main file, removed that and it successfully rebuilt however error remains that the crawler isn’t enabled, here is the output :
Error and successful rebuild :
[root@beast ~]# /scripts/ensure_vhost_includes --all-users
Initial configuration generation failed with the following message:
The “/usr/sbin/httpd -DSSL -t -f /etc/apache2/conf/httpd.conf.work.fe8313f2.cfgcheck -C Include "/etc/apache2/conf.modules.d/*.conf"” command (process 157756) reported error number 1 when it ended.
httpd_ls_bak: Syntax error on line 31 of /etc/apache2/conf/httpd.conf.work.fe8313f2.cfgcheck: Syntax error on line 10 of /etc/apache2/conf.d/includes/pre_main_global.conf: Could not open configuration file /opt/alt/alt-mod-passenger/etc/mod_passenger-5.3.7-13.el7.cloudlinux.conf: No such file or directory
Rebuilding configuration without any local modifications.
Failed to generate a syntactically correct Apache configuration.
Bad configuration file located at /etc/apache2/conf/httpd.conf.work.fe8313f2
Error:
The “/usr/sbin/httpd -DSSL -t -f /etc/apache2/conf/httpd.conf.work.fe8313f2.cfgcheck -C Include "/etc/apache2/conf.modules.d/*.conf"” command (process 157759) reported error number 1 when it ended.
httpd_ls_bak: Syntax error on line 31 of /etc/apache2/conf/httpd.conf.work.fe8313f2.cfgcheck: Syntax error on line 10 of /etc/apache2/conf.d/includes/pre_main_global.conf: Could not open configuration file /opt/alt/alt-mod-passenger/etc/mod_passenger-5.3.7-13.el7.cloudlinux.conf: No such file or directory
[root@beast ~]# /scripts/ensure_vhost_includ
CAT OUTPUT :
[root@beast ~]# cat /usr/local/apache/conf/includes/pre_main_global.conf
<IfModule LiteSpeed>
CacheRoot /home/lscache/
</IfModule>
<IfModule LiteSpeed>
CacheEngine -crawler
</IfModule>