I recently found that the error logs of all the pages I have on a VPS with cloudlinux are full of messages like this one:
PHP Warning: PHP Startup: Unable to load dynamic library
'/opt/cpanel/ea-php56/root/usr/lib64/php/modules/pdo_oci.so' -
/opt/cpanel/ea-php56/root/usr/lib64/php/modules/pdo_oci.so: cannot
open shared object file: No such file or directory in Unknown on line
0
I have searched extensively trying to find how can I disable this library or extension because I don't have it. I have changed the PHP versions and the error logs keep showing this error.
Related
I have a problem.
I've installed last secure PHP 8.0.1, Laravel through Composer. Updated Composer to 2.0.9. And now every php/composer command continues with warnings like this:
Warning: PHP Startup: Unable to load dynamic library 'oci8_12c'
Warning: PHP Startup: Unable to load dynamic library 'pdo_firebird'
Warning: PHP Startup: Unable to load dynamic library 'pdo_oci'
And my project on the welcome.blade.php says:
Unchecked runtime.lastError: The message port closed before a response was received.
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
What should I do to fix this problem?
For the oci8 and pdo_oci errors, start by installing the Oracle Instant Client 'Basic' package as shown in the PHP manual, or shown on the relevant operating system Instant Client Download page. I'm assuming you want to use Oracle.
I am using php 7.1.12 on a windows PC, i have tried to install php_protobuf_ts.dll and php_curve25519_ts.dll extensions to php i keep getting this error
Warning: PHP Startup: Unable to load dynamic library 'C:\xampp2\php\ext\php_protobuf_ts.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp2\php\ext\php_curve25519_ts.dll' - The specified module could not be found.
in Unknown on line 0
I am getting this error despite confirming that the above extensions exist on the specified directory. Please help, i have tried everything
When I check the PHP version using php -v i got error message like below
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php/20151012/php_mysqli.dll' - /usr/lib/php/20151012/php_mysqli.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php/20151012/php_mysql.dll' - /usr/lib/php/20151012/php_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 7.0.15-0ubuntu0.16.04.4 (cli)( NTS )
Please help me to fix the above issue.
In Ubuntu 14.04, the following should fix it.
cp /usr/lib/php/20151012/pdo_mysql.so /usr/lib/php/20151012/php_pdo_mysql.dll
This question already has answers here:
Error In PHP5 ..Unable to load dynamic library
(13 answers)
Closed 1 year ago.
I've recently installed Cygwin to my new work laptop and ever since I've being bombarded with the above Warning message like commercial advertisements whenever I execute commands that involves php scripts
PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/tidy.dll' - No such process in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/php_tidy.dll' - No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/php_tidy.dll' - No such file or directory in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/php_tidy.dll' - No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/php_tidy.dll' - No such file or directory in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/php_tidy.dll' - No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/tidy.dll' - No such process in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/tidy.dll' - No such process in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/tidy.dll' - No such process in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/tidy.dll' - No such process in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/tidy.dll' - No such process in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/tidy.dll' - No such process in Unknown on line 0
I've done all the research (online) I could to remove this message / fix the problem. Also I can confirm the missing libraries are in fact NOT MISSING. My cygwin install directory is C:\cygwin. Although I couldn't find /usr/lib in Windows Explorer (C:\cygwin\usr), I could, however find it as well as the libraries in cygwin. Lastly, I tried to add all paths for Windows (C:\cygwin\lib) and linux (/usr/lib) to their environment specific path variables. None of these worked.
This might seem nothing but noise as it doesn't stop me from executing php scripts on command line. But I pretty sure issues like these are never negligible in later stages of development.
thanks Brett for his comment. When I did a search again, I found the following Stack-overflow page that answers my question
Error In PHP5 ..Unable to load dynamic library
The solution is around the following grep command suggested in one of the reply post
grep -Hrv ";" /etc/php5 | grep -i "extension="
As soon as I run it I found the ini file where I could comment the correct extension to get rid of php_tidy.dll message
My issue request fixes in a 2nd place, so as an extension to the above grep command, I used
grep -Hrv ";" /etc/php5 | grep -i "tidy.dll"
which gave me the location another file that requires similar commenting.
Updated both files (php.ini and tidy.ini) rid of the messages. Now my output looked much cleaner.
A more appropriate solution is to install the missing libraries via apt-get, which was discussed in other post. But most of the discussion relates to missing .so files, I'm not sure what to "apt-get" for the dlls. For the time being, I'm happy where I am.
Good day,
I am trying to install the .dll file php_ffmpeg on my windows 7 machine, and I keep getting this error:
[29-Jan-2013 11:37:00 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.4.3/ext/php_ffmpeg.dll' - %1 is not a valid Win32 application.
in Unknown on line 0
Please help, I have tried to follow some online tutorials and they all come to a screaming halt in this stage..