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.
  • Posts

    • Windows is a scam for many decades, it's good if some people are realizing it now
    • Latest Patch Tuesday has broken DHCP Server in all Windows Server editions by Usama Jawad Microsoft released Patch Tuesday updates for Windows and Windows Server releases roughly a week ago, on June 10. In the latter, the release contained new functions for Narrator scan mode, along with tons of fixes for File Explorer, GDI+, Hyper-V, and more. At that time, Microsoft noted a known issue for Noto fonts, where Chinese, Japanese, and Korean text appears blurry or unclear under certain conditions. Now, it has highlighted another known issue following user reports. For the past couple of days, users on Reddit have been reporting issues with the DHCP service after applying the latest Patch Tuesday update. Apparently, rebooting the system fixes the issue, which can be understandably annoying. Now, Microsoft has updated the documentation for the June 10 release notes across Windows Server 2016, 2019, 2022, and 2025, to mention that the DHCP Server service may "intermittently" stop working after installing Patch Tuesday's update, which will impact IP renewal processes on client machines. Redmond has assured customers that it is working on a fix, which will likely be rolled out within the next few days. Of course, this problem is rather frustrating for IT admins, and that annoyance is reflected in the Reddit thread where customers are blaming Microsoft's software quality assurance practices. The fact that it's currently unclear when a fix will be rolled out may further add to customer grievances. For those unaware, the DHCP Server service in Windows is responsible for network management such as allocation and configuration of IP addresses in a centralized environment with robust logging and monitoring mechanisms. And for those keeping track, this is not the only Windows Server issue that has cropped up in recent memory. Last month, Microsoft pushed an out-of-band (OOB) hotfix to patch a Hyper-V bug that was plaguing the platform. Of course, one can argue that problems like these are happening because of incomplete testing, but it is also important to remember that Windows is running on hundreds of millions of devices all over the globe, so comprehensive test case coverage is very difficult, if not impossible.
    • And still, no Windows Hello support for protected "tabs" in the "old"/Win32 OneNote app, a feature that was available for a long time in the UWP version. Please, Microsoft, get back to feature parity...
    • Like jupe, for me, the most exciting news from Windows for a few weeks ( / months ?) now is the return of the clock in the taskbar calendar. I filed a feedback hub post so long ago about this. Finally!
  • Recent Achievements

    • Week One Done
      patrickft456 earned a badge
      Week One Done
    • One Month Later
      patrickft456 earned a badge
      One Month Later
    • One Month Later
      Jdoe25 earned a badge
      One Month Later
    • Explorer
      Legend20 went up a rank
      Explorer
    • One Month Later
      jezzzy earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      617
    2. 2
      ATLien_0
      281
    3. 3
      +FloatingFatMan
      174
    4. 4
      Michael Scrip
      153
    5. 5
      Steven P.
      124
  • Tell a friend

    Love Neowin? Tell a friend!