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?
Related
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.
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!
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.)
I have notice I started getting this error message in my error log:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php
/extensions/no-debug-non-zts-20060613/pdf.so' - /usr/local/lib/php/extensions
/no-debug-non-zts-20060613/pdf.so: cannot open shared object file: No such file
or directory in Unknown on line 0
The error goes into the log every time you open the main page but everything seems to be working. Does anyone have any ideas what might cause this error to occur, I have been change the code in the past few days but when read back though I can't find anything that could be the cause.
there's nothing on the page that I have changed for when it initially loads but i have changed things in areas where I have if (isset...etc.
Any possible suggestions are appreciated. what type of command might this error message be caused by?
It appears your PHP installation is configured to load http://www.php.net/manual/en/intro.pdf.php and cannot find it.
Remove its respective extension entry in php.ini or fix the path or ensure the file exists if you require it.
My PHP error logs are filling up extremely rapidly with the following line:
[28-Apr-2011 13:03:00] PHP Warning:
PHP Startup: Unable to load dynamic
library
'/usr/local/lib/php/extensions/no-debug-non-zts-20060613/'
- /usr/local/lib/php/extensions/no-debug-non-zts-20060613/:
cannot read file data: Is a directory
in Unknown on line 0
I've googled the issue and found several results, but all involving something after the last / where this error appears to be something to do with the path itself.
The site(s) are running on cPanel/WHM on CentOS.
You will need to check your php.ini. One of the entries there does not specify a correct filename, but probably something like this:
extension = .
; or the raw pathname as shown in your error.log
extension = /usr/local/lib/php/extensions/no-debug-non-zts-20060613/
That's why the error says Is a directory.
The in Unknown on line 0 refers to your php.ini (it does not have a __FILE__ or __LINE__ number, so leads to that mysterious location hint.)