HELP!!! from PHP 5.16 to 5.3 Unable to load dynamic library [message #175942] |
Wed, 09 November 2011 15:45 |
federico M
Messages: 5 Registered: November 2011
Karma: 0
|
Junior Member |
add to buddy list ignore all messages by this user
|
|
I'm not expert!
I Tried to upgrade PHP 5.16 to 5.30 with yum upgrade
it works, but a lot of extensions can't be loaded now
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/
php/modules/gettext.so' - /usr/lib64/php/modules/gettext.so: 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/lib64/
php/modules/hyperwave.so' - /usr/lib64/php/modules/hyperwave.so:
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/lib64/
php/modules/mime_magic.so' - /usr/lib64/php/modules/mime_magic.so:
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/lib64/
php/modules/ming.so' - /usr/lib64/php/modules/ming.so: 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/lib64/
php/modules/mssql.so' - /usr/lib64/php/modules/mssql.so: 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/lib64/
php/modules/openssl.so' - /usr/lib64/php/modules/openssl.so: 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/lib64/
php/modules/pdf.so' - /usr/lib64/php/modules/pdf.so: 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/lib64/
php/modules/sockets.so' - /usr/lib64/php/modules/sockets.so: 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/lib64/
php/modules/xslt.so' - /usr/lib64/php/modules/xslt.so: cannot open
shared object file: No such file or directory in Unknown on line 0
PHP Warning: Module 'curl' already loaded in Unknown on line 0
PHP Warning: Module 'gd' already loaded in Unknown on line 0
PHP Warning: Module 'imap' already loaded in Unknown on line 0
I check where is this extension to insert path... but don't work
a lot of that I can't find really...
where is the standard directory for phpo extension ? (Centos 5.5 Plesk
9.5)
what I can do so solve the problem?
Someone could help me?
thank you!
federico
|
|
|
Re: HELP!!! from PHP 5.16 to 5.3 Unable to load dynamic library [message #175943 is a reply to message #175942] |
Wed, 09 November 2011 18:30 |
|
On Wed, 09 Nov 2011 12:45:08 -0800, federico M wrote:
> PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/
> php/modules/x.so' - /usr/lib64/php/modules/x.so: cannot open
> shared object file: No such file or directory in Unknown on line 0
(repeated for various x)
Sounds like you're missing some libraries, or you have some bad links.
I'd suggest that you try and find out which package installs each of the
libraries in question (I think these were gettext.so, hyperwave.so,
mime_magic.so, ming.so, mssql.so, openssl.so, pdf.so, sockets.so, and
xslt.so, but I might have missed some) and then install those packages.
Rgds
Denis McMahon
|
|
|
|
|
Re: HELP!!! from PHP 5.16 to 5.3 Unable to load dynamic library [message #175946 is a reply to message #175945] |
Wed, 09 November 2011 22:58 |
|
On Wed, 09 Nov 2011 17:46:22 -0800, federicomo wrote:
> Sorry, thank you for your answer first!
>
> Try to explain better:
> You are right the extensions are not installed, but if I install them I
> have some warning in php -m ...
OK, well it may be that the libraries are installed, but not where php
expects to find them, or you may have a mixture of 32 bit and 64 bit
packages that is causing confusion?
Perhaps you have not installed the right php packages, eg on my debian/
ubuntu based server most of the php extensions are in packages named
"php5-......."
Or it's looking in the wrong place? My .so files are in:
/usr/lib64/php5/20090626 on my 64 bit desktop, and
/usr/lib/php5/20090626+lfs on the 32 bit server
but I can't see anything in my php.ini files that tells php that's where
the extension libraries are loaded, although I'd assume it was specified
somewhere.
The dir names can't be coincidence, I must have done software installs on
both machines on 26th June 2009.
So, perhaps (from a root account), for each relevant x:
find / -name x.so
and if it exists, create a link from where php expects to find it to
where it actually is, so that php will find it from the link where it's
currently looking, eg
if x.so is in /usr/lib64/php5/modules/x.so
then make the /usr/lib64/php/modules dir if needed, and create a link:
sudo mkdir /usr/lib64/php
sudo mkdir /usr/lib64/php/modules
ln -s /usr/lib64/php5/modules/x.so /usr/lib64/php/modules/x.so
It's a work around, but it should solve your problem if the issue is that
the files are present but not where php is expecting them.
Rgds
Denis McMahon
|
|
|
Re: HELP!!! from PHP 5.16 to 5.3 Unable to load dynamic library [message #175947 is a reply to message #175946] |
Wed, 09 November 2011 23:06 |
|
On Thu, 10 Nov 2011 03:58:17 +0000, Denis McMahon wrote:
> The dir names can't be coincidence, I must have done software installs
> on both machines on 26th June 2009.
Ah, I discovered from my phpinfo that the PHP API is 20090626, so that
would probably be why that date appears in the directory name where my
module libraries are located.
Rgds
Denis McMahon
|
|
|
Re: HELP!!! from PHP 5.16 to 5.3 Unable to load dynamic library [message #175953 is a reply to message #175942] |
Thu, 10 November 2011 04:14 |
federico M
Messages: 5 Registered: November 2011
Karma: 0
|
Junior Member |
add to buddy list ignore all messages by this user
|
|
Thank you Denis,
I have 64bit Centos5.5 Plesk9.5
Directory of extensions is /usr/lib64/php5/modules/
and it's the defould directory I think...
but in php.ini is written you can specify a different directory and I tried. but not work.
estensions are intalled by YUM so it is all 64bit. I quite sure.
If I look for the ones that give me problem...
ex locate pdf.so
system can't find! but there is in /usr/lib64/php5/modules/ , someone suggest me that there is a problem of installation and repository...
but I don't know what means?
I Installed for example pdf.so and installation work! but still alert there is :(
Could be a configuration problem of yum?
how can I check this?
Thank you
|
|
|
|
|
|