#!/usr/bin/perl
use lib '/usr/local/cpanel';
my $haschecker = 0;
eval '
    use Cpanel::EasyApache::PreConfCheck;
    $haschecker = 1;
';

if ($haschecker) {
    print "Checking httpd.conf....";
    my ( $syntax_ok, $syntax_errors ) = Cpanel::EasyApache::PreConfCheck::_syntax_check_good( "/usr/local/apache/conf/httpd.conf", '' );
    print "Done\n";
    if ($syntax_ok) {
        print "No problems founds!!\n";
    }
    else {
        print "Here is the problem in httpd.conf: [$syntax_errors]\n";
    }
}
else {
    print "Sorry, you need a newer version of cPanel to use this.\n";
}

