LoadModule[ \t]+php\d_module[ \t]+modules\/libphp\d\.so might make more sense here.

Also if we are running mod_ruid2 it won't be as nobody.

Also loading into memory and searching it would be much much faster then reading in each line.

if ( my $php_conf_text = Cpanel::LoadFile::loadfile($phpconf)) { 
  if ($php_conf_text =~ m/\n[\t ]+LoadModule[ \t]+php\d_module[ \t]+modules\/libphp\d\.so/s) {

  }
}