Solved

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

Posted on 2010-08-16
4
1,355 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 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
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.

710 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