Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2010-08-16
4
Medium Priority
?
1,361 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 2000 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

885 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