Solved

PHP Warning: PHP Startup: Unable to load dynamic link library.

Posted on 2010-08-16
4
1,351 Views
Last Modified: 2013-11-08
Hi experts,

I have a cPanel hosting account with a cron job invoking php from the command line. Every time it runs it adds the following error to my error_log, which eventually gets very large.


[17-Aug-2010 13:37:01] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/timezonedb.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/timezonedb.so: cannot open shared object file: No such file or directory in Unknown on line 0
[17-Aug-2010 13:37:01] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_ldap.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0

Open in new window


My hosting supplier has no idea why. Any ideas? Where can I look?

Cheers,
Michael
0
Comment
Question by:mstrelan
  • 2
  • 2
4 Comments
 
LVL 48

Expert Comment

by:hernst42
ID: 33451811
Are you sure those two files exists on that server in that directory? Else check via console

ldd /usr/local/lib/php/extensions/no-debug-non-zts-20060613/timezonedb.so

if all needed libs for those so are available.
0
 
LVL 10

Author Comment

by:mstrelan
ID: 33451830
they do not exist, do you know where i can get them? i have full whm root access
0
 
LVL 48

Accepted Solution

by:
hernst42 earned 500 total points
ID: 33451973
if they do not exists, check the php.ini used by the command line php (php -i | grep configuration ) and comment out the lines
extension=timezonedb.so
extension=php_ldap.so
Then the error should vanish. Those extension do not exists. ldap.so might exists and timezonedb.so is typical build in with php.
0
 
LVL 10

Author Comment

by:mstrelan
ID: 33451985
Hosting supplier just found the same solution, so thanks hernst42!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now