Running Apache 1.3.12, mod_perl 1.23, ePerl 2.2.13, mysql 3.23.14a

get error message in apache/logs :
[error] access to /usr/local/bin/apache/http/index.iphtml failed for
127.0.0.1, reason: Apache::ePerl: Error on evaluating script from
P-code

apache/conf/httpd.conf :
DocumentRoot "/usr/local/bin/apache/http"

<Directory /usr/local/bin/apache/http>
    Options Indexes FollowSymLinks ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

Perlrequire /usr/local/bin/apache/http/startup.perl

PerlModule Apache::ePerl
<Files *.iphtml>
    Options +ExecCGI
    SetHandler perl-script
    PerlHandler Apache::ePerl
</Files>

<Location /perl-status>
    Options +ExecCGI
    SetHandler perl-script
    PerlHandler Apache::Status
</Location>

apache/http/startup.perl :
#!/usr/local/bin/perl5

use strict;
use Apache::Registry;
use DBI();

use Carp();
$SIG{__WARN__} = \&Carp::cluck;

use CGI;
CGI->compile(':all');
1;

apache/http/index.iphtml :
<?
        use DBI;

        my $data_source = "DBI:mysql:testdb";
        my $username = "test";
        my $password = "test";
 

        my $db_handle = DBI->connect( $data_source, $username, $password ) or
                die $DBI::errstr;

!>//

<HTML>

        <HEAD> <TITLE> Testing </TITLE> </HEAD>

<BODY>
</BODY>

</HTML>
 
 

Any idea what I did wrong, commands, suggestions, please help.
Thank you.
 

Reply via email to