[rt-users] problems "starting up" RT2 - can't connect to MySQL
Alesh Mustar
alesh at sportina.si
Wed May 23 03:30:08 EDT 2001
Yesterday I've sent a message about my problems conserning DBI.pm, after
some more checks, I managed to solve the problem (i dunno if it's the
right way), by making a symlink.
DBI.pm is located in /usr/local/lib/perl5/site_perl/5.6.1/Apache/DBI.pm
when Apache complained that it doesn't find it in @INC, so i made a
symlink in /usr/lib/perl5/site_perl/5.6.0/i386-linux/Apache/DBI.pm which
solved the problem.
In httpd.conf I have:
<VirtualHost 192.168.1.8>
DocumentRoot /opt/rt2/WebRT/html
ServerName rt2.sportina.si
PerlModule Apache::DBI
PerlRequire /opt/rt2/bin/webmux.pl
<Location />
SetHandler perl-script
PerlHandler RT::Mason
</Location>
</VirtualHost>
I get a 500 server internal error if I point the browser to rt2.sportina.si.
In error log of apache I found this:
[Tue May 22 13:32:11 2001] [notice] Apache/1.3.14 (Unix)
(Red-Hat/Linux) DAV/1.0.1 PHP/4.0.1pl2 mod_perl/1.24 configured --
resuming normal operations
DBI->connect(dbname=rt2;host=localhost) failed: Can't connect to local
MySQL server through socket '/var/lib/mysql/mysql.sock' (111) at
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Handle.pm line 118
[Tue May 22 13:32:13 2001] [error] Connect Failed Can't connect to local
MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
at /opt/rt2/lib/RT.pm line 14
I tried perl -MCPAN -e'install DBD::mysql::Install' didn't help either.
And yes mysql is running, and yes it's the correct version.
Can anyone advise what to do?
Thank you in advance,
Alesh
More information about the rt-users
mailing list