Thank you paulonichio!
...however I followed those instructions (twice), but that didn't help. Still getting an error, but the error is slightly different this time:
httpd[24786]: httpd: Syntax error on line 51 of /etc/httpd/conf/httpd.conf: Syntax error on line 3 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Syntax error on line 2 of /etc/httpd/conf/extra/httpd-modsecurity.conf: Cannot load /usr/lib/apache/mod_security2.so into server: /usr/lib/apache/mod_security2.so: undefined symbol: luaL_loadfilex...
So instead of "undefined symbol: lua_setglobal" I am not getting "undefined symbol: luaL_loadfilex".
Will see where that file comes from, maybe some different directory...
But thank you for replying! Highly appreciated.
//edit #1
I also compared both options.conf for both "identical" servers, but the only difference (other than PHP version and hostname) are:
secure_php=no | yes
userdir_access=yes | no
pigeonhole=yes | no
The first setting is from the server with issues with ModSecurity where the 2nd setting is from the server without issues.
Otherwise everything is the same. Weird...
//edit #2
I also compared those folders which are being removed from your previous reply. Here is what I noticed:
Problem server: /usr/local/include= empty
Working server: a lot of files and directories
Problem server: /usr/local/lib = empty
Working server: a lot of files and directories
Very strange...