Perl, cPanel and Bugzilla

There are a few things that need to be done to get it working:

Firstly, in 4 Perl scripts (checksetup.pl, testserver.pl, index.cgi and Bugzilla.pm) you need to add the path to the alternative Perl modules that cPanel has installed:

BEGIN {
    my $homedir = ( getpwuid($>) )[7];
    my @user_include;
    foreach my $path (@INC) {
        if ( -d $homedir . '/perl' . $path ) {
            push @user_include, $homedir . '/perl' . $path;
        }
    }
    unshift @INC, @user_include;
}

When you run the ./checksetup.pl file you may need to specify more options, especially if your Perl installation constantly runs out of memory:

./checksetup.pl --no-templates --make-admin

and all should work.

Leave a Reply

You must be logged in to post a comment.