Operating System & Version
centos 7 64bit
cPanel & WHM Version
11.90.0.15

cyberweb

Member
May 12, 2017
7
1
3
rasht
cPanel Access Level
Root Administrator
hello
some while i got below error on /scripts/rebuildhttpdconf:

Error: The system failed to configure access permissions for the “/home/customer/public_html/00cod/back” directory because of an error: Apache detected an error in the Rewrite config. <pre>httpd_ls_bak: Syntax error in -C/-c directive: Syntax error on line 2 of /etc/apache2/conf.modules.d/150_mod_dav.conf: Cannot load modules/mod_dav.so into server: /etc/apache2/modules/mod_dav.so: undefined symbol: ap_parse_strict_length </pre> Please try again. at /usr/local/cpanel/Cpanel/HttpUtils/Htaccess.pm line 316.

so, at that time, when i checking httpd -v output, i see that apache version is 2.4.43 but when i check rpm -qa output it shows that its installed rpm is on 2.4.46!!!!
like this:

[[email protected] apache2_4]# httpd -v
Server version: Apache/2.4.43 (cPanel)

[[email protected] apache2_4]# rpm -qa | grep ea-apache24-2
ea-apache24-2.4.46-1.el7.cloudlinux.x86_64

it seams that some one installs 2.4.43 like compile it by source on the server on installed rpm and so that error happening because apache turn 2.4.43 but all of its modules are on 2.4.46 yet!

i solved the problem by yum reinstall ea-apache24 -y but this problem is happening some while later without any frequently times....also i was disabled update by /etc/cpupdate.conf like:

[[email protected] apache2_4]# cat /etc/cpupdate.conf
CPANEL=release
RPMUP=never
SARULESUP=never
STAGING_DIR=/usr/local/cpanel

please note that i'm using litespeed as webserver for this server
 
Last edited:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,418
1,000
313
cPanel Access Level
Root Administrator
Hey there! The most likely explanation is that the RPM is automatically updated on your machine, but Apache wasn't restarted to load that new configuration. I see this in my /var/log/yum.log file on my personal system:

Code:
May 06 02:53:08 Updated: ea-apache24-2.4.46-6.12.1.cpanel.x86_64
but the build date from Apache is older:

Code:
# httpd -v
Server version: Apache/2.4.46 (cPanel)
Server built:   May  5 2021 12:29:14
 

cyberweb

Member
May 12, 2017
7
1
3
rasht
cPanel Access Level
Root Administrator
Hey there! The most likely explanation is that the RPM is automatically updated on your machine, but Apache wasn't restarted to load that new configuration. I see this in my /var/log/yum.log file on my personal system:

Code:
May 06 02:53:08 Updated: ea-apache24-2.4.46-6.12.1.cpanel.x86_64
but the build date from Apache is older:

Code:
# httpd -v
Server version: Apache/2.4.46 (cPanel)
Server built:   May  5 2021 12:29:14
hi
i checked apache restart and even reboot the machine also the server's /var/log/yum.log is not updated and it is just shows that reinstall log of ea-apache24!!!!
really this is like a ghost activity!!!
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,418
1,000
313
cPanel Access Level
Root Administrator
I don't really have any other advice on my end. If you'd like, you're always welcome to open a ticket with our team so we can check things on the server directly. If you do that, please post the ticket number here so I can make sure this thread stays updated.