Error when loading apache


Recommended Posts

I recently upgraded my server, and decided to move from debian to gentoo, which i've had on a desktop machine.

I'm really liking gentoo btw.

My problem is, when i try to load apache, and it tries to load php, php conks out with the error:

php: error while loading shared libraries: libmysqlclient.so.14: cannot open shared object file: No such file or directory

I have mysql installed (port is open, i can access the databases etc) and apache2/php5 was working fine before i tried to install mysql

so i went looking for the missing shared object:

locate libmysqlclient.so

/usr/lib64/mysql/libmysqlclient.so

/usr/lib64/libmysqlclient.so

/usr/lib64/libmysqlclient.so.12.0.0

/usr/lib64/libmysqlclient.so.12

i don't see a 'libmsqlclient.so.14' in there, should there be? And how do i fix this?

Link to comment
https://www.neowin.net/forum/topic/384456-error-when-loading-apache/
Share on other sites

You have the wrong version installed, I haven't used gentoo as a server, but this happens when php is compiled against the wrong version, php is looking for a newer version. Unmerge mysql, and reemerge php with the mysql use flag set, it should pull in the proper version as a dependency.

As long as its working than its not a big deal how you do it. For me I dont' mind skipping a couple point releases. 4.4.10 to 4.4.12 or whatever doesn't make THAT big a difference. Anyways that was using up2date/rpm's on a RH machine. The package manager on gentoo is probably better at resolving dependancies although I haven't messed around with portage much to really compare the two.

Yes portage does its job arguably much better than redhat. Skipping releases when running a server is a bad idea since they usually fix vulnerabilities, not to mention the numerous patches for vulnerabilities that are released between versions. I have no problem compiling from source, but I would not ever do it for something that the package manager, whatever it be, could handle for me.

  j79zlr said:
Yes portage does its job arguably much better than redhat.  Skipping releases when running a server is a bad idea since they usually fix vulnerabilities, not to mention the numerous patches for vulnerabilities that are released between versions. I have no problem compiling from source, but I would not ever do it for something that the package manager, whatever it be, could handle for me.

586668477[/snapback]

Depends on your perspective. I still run a version of Apache that's pretty old, because its still very secure and stable. I still won't even run the 2.0 branch either. You have to find that balance of security, features, and stability. Its more of a personal preference.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.