Warning: PHP Startup: Unable to load dynamic library [ IIS and PHP ] - php

I'm currently doing a project for my school and I faced a few errors. I am currently using PHP 7.1.12 with IIS and I have these errors.
[Warning: PHP Startup: Unable to load dynamic library 'ext\php_interbase.dll' - The specified module could not be found.
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'ext\php_oci8_12c.dll' - The specified module could not be found.
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'ext\php_pdo_firebird.dll' - The specified module could not be found.
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'ext\php_pdo_oci.dll' - The specified module could not be found.
in Unknown on line 0]1
I checked my php.ini and I added those dlls above into the extensions part. I also checked my php\ext file and I do have those dll files.
As you can see from the highlighted files.
My php.ini file
I tried googling for answers but most people use Apache instead of IIS. Anyone knows how to solve it ? Your help is greatly appreciated. :)

Those are database extensions. If you are not using those types of databases then you can go ahead and comment them out for the time being with a ';'.
Typically for school projects students use:
MySQL (listed in php.ini as: 'php_pdo_mysql.dll'),
or
Microsoft SQL Server (listed in php.ini as: 'php_pdo_odbc.dll')...
...database adapter files (aka pdo .dll's). Sorry I am late to the game in answering this question since no one else felt compelled to do so in almost two months. I hope you were able to figure this out from a teacher or another fellow student since it appears I am probably far too late to be of much help to you!

Related

Unable to load dynamic library 'php_sockets.dll'

Ok, so when I run my php file it gives me this error:
PHP Warning: PHP Startup: Unable to load dynamic library 'php_sockets.dll'
In my php.ini file, I've added the line "extension=php_sockets.dll" but it still gives me this error. I've searched many ways of solving this problem but they didn't work.
I've noticed someting in the error. It said this:
C:\xampp\php\ext\php_php_sockets.dll.dll (The specified module could not be found.))
Why does it say php_php_socketsdll.dll? How can I fix this?

PHP Warning: PHP Startup: Unable to load dynamic library 'php_fileinfo.dll'

Good morning,
I'm struggerling to understand the below error. I believe it was caused when i migrated a cPanel account from one WHM to another.
I'm currently running Laravel but my log files are repeatedly growing with the same error.
[02-Jun-2020 10:46:47 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_fileinfo.dll' (tried: /opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll.so (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Has anyone experienced this before? or no of how i can resolve it...
Regards
Ross
You may be missing a library. See this related question:
How to enable php_fileinfo extension in PHP?
If you have cpanel just go to
Select PHP Version
and search for the extension
fileinfo
check it and you're good to go.

PHP trader_macd() sending always false

I try to use the trader_macd() function in PHP. But it always returns bool(false). I tried different parameters, values for the array but i always get the same. PECL is enabled and the function answers but i never get a good calculation.
Anyone knows if this is an issue of the trader.so extension or from my code?
$values = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27);
$macd = trader_macd($values, 12, 26, 9);
var_dump($macd);
Thanks!
I found the issue. Apache was sending an error message
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/trader.so' - /usr/lib/php5/20131226/trader.so: cannot open shared object file: No such file or directory i$
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/trader.so' - /usr/lib/php5/20131226/trader.so: cannot open shared object file: No such file or directory i$
There were two modules installed at the same time. On in 20131226 and one in 20121212. So i removed the oldest and it works like a charm!

PHP Warnings always display, even with commands to set them to off

I'm currently having a lot of trouble in implementing some .php files. When I host them on my own server, it all comes out fine, but when I host them on the server where they will be hosted once they are completed, I get a bunch of PHP warnings that look like the below.
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php5.6\ext\php_mysql.dll' - %1 is not a valid Win32 application. in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'c:\php5.6\ext\php_mysql.dll' - %1 is not a valid Win32 application. in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php5.6\ext\php_mysqli.dll' - %1 is not a valid Win32 application. in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'c:\php5.6\ext\php_mysqli.dll' - %1 is not a valid Win32 application. in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php5.6\ext\php_soap.dll' - %1 is not a valid Win32 application. in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'c:\php5.6\ext\php_soap.dll' - %1 is not a valid Win32 application. in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php5.6\ext\php_xsl.dll' - %1 is not a valid Win32 application. in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'c:\php5.6\ext\php_xsl.dll' - %1 is not a valid Win32 application. in Unknown on line 0
The tricky part is that nothing I'm doing seems to stop these warnings. They show up on any PHP file hosted on the space I have to use, and none of the tricks to hide errors or warnings I have seen are working. So far I have tried:
error_reporting(0);
ini_set('display_startup_errors',0);
ini_set('display_errors',0);
#[functionNames]
None of which did anything (implmented seperately or together). The warning messages even show in a php file that calls phpinfo() and exits. From my digging online, it seems like the warnings are about a faulty extension path, which can happen sometimes when PHP is updated but the old installation files still point to outdated extensions. I can't be sure that's it though, because I have no way right now of contacting anyone who could be a system administrator or would know anything about the php installation. The php installation seems to be on the C drive of whatever computer the server is on. If I was able to get to that PHP installation I could correct the bad paths, but I don't have access to do that right now.
I believe the reason my error_reporting commands aren't working is because the "Master Value" for each value is set to on. I'm fairly new to PHP though, and haven't used phpinfo() before, so I could very well be wrong. If the normal commands don't work, is there anything that I can do? In case it helps, here's a look at what phpinfo() shows for the errors section: phpinfo
The warning messages aren't changing the way that any of the code works, it's just really annoying to see them all at the bottom of every single page. PHP is version 5.3.0.

PHP Warning that I cant get rid of .. "missing mcrypt.so" .. but phpinfo() shows it

I have this error showing up in iTerm again..
PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so, 9): Library not loaded: /usr/local/lib/libmcrypt.4.dylib
Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so
Reason: image not found in Unknown on line 0
It's just a warning, so I can still work. But I want to get rid of it.
Thing is, I have been down this road before. I have installed mcrypt before when this problem came up previously (with homebrew, I think .. but I was a bit more clueless then than I am now, I was just following some sites. At any rate, the error had disappeared for a few months).
Mcrypt shows in my phpinfo() and the mcrypt.so file is there in /usr/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so
Any ideas what the problem is? Can anyone give me a hand troubleshooting this?
(I realize that this question has already been asked, but the answer is usually just "You are missing the extension", or "comment out the line in php.ini". I would like to understand what is going on and solve the problem without commenting out mcrypt, as that always seems to raise new additional issues. Specifically, Laravel needs it.)

Categories