Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2010-08-16
4
Medium Priority
?
1,359 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
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.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

705 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