Skip to main content

LUA issues with EA3

Comments

3 comments

  • cPanelMichael
    Hello @lorio, This is a known issue reported as part of internal case EAL-3220. The current workaround is to install the lua-devel package before starting the EasyApache 3 build: yum install lua-devel
    Can you check and verify if this addresses the issue? Also, is there anything in-particular that's preventing you from updating this server to EasyApache 4 that we could possibly assist with? EasyApache 3 is nearing EOL status and cases like EAL-3220 may not receive as much priority. Thank you.
    0
  • lorio
    yum install lua-devel
    Can you check and verify if this addresses the issue?

    Thanks, I can confirm that this solves the issue. Any background info about that? I still don't understand why I cannot comment the lua line out. The /usr/local/apache/conf/modsec2.conf file seems to get composed from a different source, which is preventing any change. To answer your question about EA3->EA4. Yes, I will move to EA4 soon. But I like to post bugs and get them solved. Since nobody posted something about that issue, now we have thread. There might be others which can profit from that. Might save some tickets on your side, too. Thanks again. I only checked the LUA installation. Didn't thought a second about trying the development package.
    0
  • cPanelMichael
    Thanks, I can confirm that this solves the issue. Any background info about that?

    I still don't understand why I cannot comment the lua line out. The /usr/local/apache/conf/modsec2.conf file seems to get composed from a different source, which is preventing any change.

    Internal case EAL-3220 notes the issue relates to /var/cpanel/perl/easy/Cpanel/Easy/ModSec.pm where it incorrectly adds the lua line to the /usr/local/apache/conf/modsec2.conf file on systems using EasyApache 3. The lines in ModSec.pm at the root of the issue area: '7.1' => { 'name' => 'lua Loadfile if necessary', 'command' => sub { my ($self) = @_; my $conf = '/usr/local/apache/conf/modsec2.conf'; if ( -d $self->{'__'}{'lua_path'} && -e $self->{'__'}{'lua_path'} . 'lib/liblua.so' && -e $conf ) { <=========> my $rc = Cpanel::FileUtils::regex_rep_file( $conf, { qr{^[\s]*[#](\s*LoadFile\s*/opt/lua/lib/liblua[.]so)} => q{$1}, }, {}, ); $self->print_alert( q{Could not add '[_1]' to '[_2]'}, 'lua LoadFile', $conf ) if !$rc; } return ( 1, 'ok' ); }, },
    Thank you.
    0

Please sign in to leave a comment.