Hi,<br><br>Need help on following error.<br>What are the possible causes and fix for the same.<br><br><span style="background-color: rgb(255, 255, 0);">Syntax error on line 55 of /media/Data/cvs.bin/conf/httpd.conf:</span><br style="background-color: rgb(255, 255, 0);">
<span style="background-color: rgb(255, 255, 0);">$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</span><br>
<br>-------------------------File PerlSections.pm (partial starting from line 157)----------<br><br>sub dump_section {<br>    my ($self, $name, $loc, $hash) = @_;<br><br>    $self->add_config("<$name $loc>\n");<br>
<br>    for my $entry (keys %{ $hash || {} }) {<br>        $self->dump_entry($entry, $hash->{$entry});<br>    }<br><br>    $self->add_config("</$name>\n");<br>}<br><br>sub dump_array {<br>    my ($self, $name, $entries) = @_;<br>
<br>    for my $entry (@$entries) {<br>        $self->dump_entry($name, $entry);<br>    }<br>}<br><br>sub dump_entry {<br>    my ($self, $name, $entry) = @_;<br>    my $type = ref $entry;<br><br>    if ($type eq 'SCALAR') {<br>
        $self->add_config("$name $$entry\n");<br>    }<br>    elsif ($type eq 'ARRAY') {<br>        if (grep {ref} @$entry) {<br>            $self->dump_entry($name, $_) for @$entry;<br>        }<br>
        else {<br>            $self->add_config("$name @$entry\n");<br>        }<br>    }<br>    elsif ($type eq 'HASH') {<br>        $self->dump_hash($name, $entry);<br>    }<br>    elsif ($type) {<br>
        #XXX: Could do $type->can('httpd_config') here on objects ???<br>        die "Unknown type '$type' for directive $name";<br>    }<br>    elsif (defined $entry) {<br>        $self->add_config("$name $entry\n");<br>
    }<br>}<br><br>sub add_config {<br>    my ($self, @config) = @_;<br>    foreach my $config (@config) {<br>        return unless defined $config;<br>        chomp($config);<br>        push @{ $self->directives }, $config;<br>
    }<br>}<br><br>sub post_config {<br>    my ($self) = @_;<br>    <span style="background-color: rgb(255, 255, 0);">my $errmsg = $self->parms->add_config($self->directives);</span>    <--- Line 215<br>    die $errmsg if $errmsg;<br>
}<br><br>------------------<br><br clear="all"><br>-- <br>ANKIT AGRAWAL<br>