Annoying error with mysql.so

Annoying error with mysql.so

am 20.03.2005 09:39:36 von Nicholas Davey

I'm having issues with DBD::mSQL & DBD::mysql. Both modules install just
fine. However, when I use either of them, I get DynaConf errors.

Here is a copy of my Apache error log (I dont have this problem when I
run the script from the command like, IE perl ):

Sun Mar 20 02:25:54 2005] [error] [client 127.0.0.1] install_driver
(mysql) failed: Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-
thread-multi/auto/DBD/mysql/mysql.so' for module
DBD::mysql: /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-
multi/auto/DBD/mysql/mysql.so: failed to map segment from shared object:
Permission denied at /usr/lib/perl5/5.8.5/i386-linux-thread-
multi/DynaLoader.pm line 230.
[Sun Mar 20 02:25:54 2005] [error] [client 127.0.0.1] at (eval 1) line
3
[Sun Mar 20 02:25:54 2005] [error] [client 127.0.0.1] Compilation failed
in require at (eval 1) line 3.
[Sun Mar 20 02:25:54 2005] [error] [client 127.0.0.1] Perhaps a required
shared library or dll isn't installed where expected

I installed via CPAN, cpan => install DBD::msql & cpan => install
DBD::mysql

Both install fine, but I get the error above when I use it in a web CGI
script for my website.

I have tried reinstalling with --static and --config, but that doesnt
help.

Is this an issue with Apache not being able to access the mysql.so file
or directory? I dont see how as those dirs are chmod 755, so it should
be able to read and exec.

Any help would be great!

Vadtec
vadtec@vadtec.net


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

RE: Annoying error with mysql.so

am 20.03.2005 10:18:46 von mark

> -----Original Message-----
> From: Vadtec [mailto:vadtec@vadtec.net]
> Sent: zondag 20 maart 2005 9:42
> To: msql-mysql-modules@lists.mysql.com
> Subject: Annoying error with mysql.so
>
>
> Sun Mar 20 02:25:54 2005] [error] [client 127.0.0.1] install_driver
> (mysql) failed: Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-
> thread-multi/auto/DBD/mysql/mysql.so' for module
> DBD::mysql: /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-
> multi/auto/DBD/mysql/mysql.so: failed to map segment from
> shared object:
> Permission denied at /usr/lib/perl5/5.8.5/i386-linux-thread-
> multi/DynaLoader.pm line 230.
>
> Is this an issue with Apache not being able to access the
> mysql.so file or directory?

That is what it seems to be saying.

> I dont see how as those dirs are chmod 755, so it should
> be able to read and exec.

And the file itself? Do:

ls -la /usr/lib/perl5/ [cut to avoid wrap] /auto/DBD/mysql/mysql.so

Is is world-readable? Also, is your Apache chrooted, by any chance?

- Mark

System Administrator Asarian-host.org

---
"If you were supposed to understand it,
we wouldn't call it code." - FedEx


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

RE: Annoying error with mysql.so

am 20.03.2005 20:21:07 von Nicholas Davey

Ok, the mysql.so file is chmod 555, world readable and executable.

As for Apache being chrooted, I installed the Fedora Core 3 RPM version
of it, so I doubt it will be chrooted. But, alas, i havent had much
exposure to chroot, so I have no idea how that could be affecting it.

Vadtec
vadtec@vadtec.net

On Sun, 2005-03-20 at 09:18 +0000, Mark wrote:
>
> > -----Original Message-----
> > From: Vadtec [mailto:vadtec@vadtec.net]
> > Sent: zondag 20 maart 2005 9:42
> > To: msql-mysql-modules@lists.mysql.com
> > Subject: Annoying error with mysql.so
> >
> >
> > Sun Mar 20 02:25:54 2005] [error] [client 127.0.0.1] install_driver
> > (mysql) failed: Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-
> > thread-multi/auto/DBD/mysql/mysql.so' for module
> > DBD::mysql: /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-
> > multi/auto/DBD/mysql/mysql.so: failed to map segment from
> > shared object:
> > Permission denied at /usr/lib/perl5/5.8.5/i386-linux-thread-
> > multi/DynaLoader.pm line 230.
> >
> > Is this an issue with Apache not being able to access the
> > mysql.so file or directory?
>
> That is what it seems to be saying.
>
> > I dont see how as those dirs are chmod 755, so it should
> > be able to read and exec.
>
> And the file itself? Do:
>
> ls -la /usr/lib/perl5/ [cut to avoid wrap] /auto/DBD/mysql/mysql.so
>
> Is is world-readable? Also, is your Apache chrooted, by any chance?
>
> - Mark
>
> System Administrator Asarian-host.org
>
> ---
> "If you were supposed to understand it,
> we wouldn't call it code." - FedEx
>
>


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

RE: Annoying error with mysql.so

am 20.03.2005 20:46:47 von Robin Hughes

This thread may help. It seems to be a problem in
SElinux.


http://www.fedoraforum.org/forum/archive/index.php/t-22941.h tml


--- Vadtec wrote:
> Ok, the mysql.so file is chmod 555, world readable
> and executable.
>
> As for Apache being chrooted, I installed the Fedora
> Core 3 RPM version
> of it, so I doubt it will be chrooted. But, alas, i
> havent had much
> exposure to chroot, so I have no idea how that could
> be affecting it.
>
> Vadtec
> vadtec@vadtec.net
>
> On Sun, 2005-03-20 at 09:18 +0000, Mark wrote:
> >
> > > -----Original Message-----
> > > From: Vadtec [mailto:vadtec@vadtec.net]
> > > Sent: zondag 20 maart 2005 9:42
> > > To: msql-mysql-modules@lists.mysql.com
> > > Subject: Annoying error with mysql.so
> > >
> > >
> > > Sun Mar 20 02:25:54 2005] [error] [client
> 127.0.0.1] install_driver
> > > (mysql) failed: Can't load
> '/usr/lib/perl5/site_perl/5.8.5/i386-linux-
> > > thread-multi/auto/DBD/mysql/mysql.so' for module
> > > DBD::mysql:
> /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-
> > > multi/auto/DBD/mysql/mysql.so: failed to map
> segment from
> > > shared object:
> > > Permission denied at
> /usr/lib/perl5/5.8.5/i386-linux-thread-
> > > multi/DynaLoader.pm line 230.
> > >
> > > Is this an issue with Apache not being able to
> access the
> > > mysql.so file or directory?
> >
> > That is what it seems to be saying.
> >
> > > I dont see how as those dirs are chmod 755, so
> it should
> > > be able to read and exec.
> >
> > And the file itself? Do:
> >
> > ls -la /usr/lib/perl5/ [cut to avoid wrap]
> /auto/DBD/mysql/mysql.so
> >
> > Is is world-readable? Also, is your Apache
> chrooted, by any chance?
> >
> > - Mark
> >
> > System Administrator Asarian-host.org
> >
> > ---
> > "If you were supposed to understand it,
> > we wouldn't call it code." - FedEx
> >
> >
>
>
> --
> MySQL Perl Mailing List
> For list archives: http://lists.mysql.com/perl
> To unsubscribe:
> http://lists.mysql.com/perl?unsub=rhinmass@yahoo.com
>
>

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org