[ensembl-dev] Invalid command 'CustomLog'

Ankit Agrawal mailme.ankit at gmail.com
Fri Oct 8 14:19:20 BST 2010


Hi,

Need help on following error.
What are the possible causes and fix for the same.

Syntax error on line 55 of /media/Data/cvs.bin/conf/httpd.conf:
$parms->add_config() has failed: Invalid command 'CustomLog', perhaps
misspelled or defined by a module not included in the server configuration
at /usr/lib/perl5/Apache2/PerlSections.pm line 215.\n

-------------------------File PerlSections.pm (partial starting from line
157)----------

sub dump_section {
    my ($self, $name, $loc, $hash) = @_;

    $self->add_config("<$name $loc>\n");

    for my $entry (keys %{ $hash || {} }) {
        $self->dump_entry($entry, $hash->{$entry});
    }

    $self->add_config("</$name>\n");
}

sub dump_array {
    my ($self, $name, $entries) = @_;

    for my $entry (@$entries) {
        $self->dump_entry($name, $entry);
    }
}

sub dump_entry {
    my ($self, $name, $entry) = @_;
    my $type = ref $entry;

    if ($type eq 'SCALAR') {
        $self->add_config("$name $$entry\n");
    }
    elsif ($type eq 'ARRAY') {
        if (grep {ref} @$entry) {
            $self->dump_entry($name, $_) for @$entry;
        }
        else {
            $self->add_config("$name @$entry\n");
        }
    }
    elsif ($type eq 'HASH') {
        $self->dump_hash($name, $entry);
    }
    elsif ($type) {
        #XXX: Could do $type->can('httpd_config') here on objects ???
        die "Unknown type '$type' for directive $name";
    }
    elsif (defined $entry) {
        $self->add_config("$name $entry\n");
    }
}

sub add_config {
    my ($self, @config) = @_;
    foreach my $config (@config) {
        return unless defined $config;
        chomp($config);
        push @{ $self->directives }, $config;
    }
}

sub post_config {
    my ($self) = @_;
    my $errmsg = $self->parms->add_config($self->directives);    <--- Line
215
    die $errmsg if $errmsg;
}

------------------


-- 
ANKIT AGRAWAL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ensembl.org/pipermail/dev_ensembl.org/attachments/20101008/fd25c2f1/attachment.html>


More information about the Dev mailing list