
Mulga
New User
Aug 6, 2012, 9:33 PM
Post #1 of 3
(2563 views)
|
Problems with mysqlPP and Apache
|
Can't Post
|
|
I am running Perl on OS X. The version of Perl is 5.12.4, Apache is 2.2.1, MySql is 5.5.27 I am having a problem running using Apache with the CGI and mysqlPP modules. I can run the following code natively without issue. #!usr/bin/perl -w use strict; use DBI; use CGI qw(:standard); my $dbh = DBI->connect("dbi:mysqlPP:database=menagerie:host=localhost", uid, pwd, {'RaiseError' => 1}); print header(), start_html("Good Return - Constituent Report"), h1("Good Return - Constituent Report"); print p("Does this work?"); print p("Databases"); print p("========="); print end_html; However when I try and run it in a browser, as intended, it fails. The following is output from the apache log. You can see that it is unable to find mysqlPP but when I look in PPM I can see that it is inatlled and I can run it natively, i.e. not as CGI. Any help would be greatly appreciated. ========== Apache Log Start ========== Perhaps the DBD::mysqlPP perl module hasn't been fully installed, or perhaps the capitalisation of 'mysqlPP' isn't right. Available drivers: DBM, ExampleP, File, Gofer, Proxy, SQLite, Sponge. at /Users/paul_griffin/Sites/testsite/html01.pl line 41 install_driver(mysqlPP) failed: Can't locate DBD/mysqlPP.pm in @INC (@INC contains: /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.3 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/Perl/Extras/5.12 .) at (eval 5) line 3. Perhaps the DBD::mysqlPP perl module hasn't been fully installed, or perhaps the capitalisation of 'mysqlPP' isn't right. Available drivers: DBM, ExampleP, File, Gofer, Proxy, SQLite, Sponge. at /Users/paul_griffin/Sites/testsite/htmltest.pl line 13 Premature end of script headers: htmltest.pl
|