AfternoonShift
asked on
PHP Warning Startup Error - Unable to load dynamic library
i just upgrade my php from 5.3 to 5.4. when i type php -v i get the following error:
[root@server extensions]# php -v
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extens ions/no-de bug-non-zt s-20100525 /imagick.s o' - /usr/local/lib/php/extensi ons/no-deb ug-non-zts -20100525/ imagick.so : cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.4.39 (cli) (built: Apr 16 2015 14:12:04)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
[root@server extensions]# php -m
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extens ions/no-de bug-non-zt s-20100525 /imagick.s o' - /usr/local/lib/php/extensi ons/no-deb ug-non-zts -20100525/ imagick.so : cannot open shared object file: No such file or directory in Unknown on line 0
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mcrypt
mhash
mysql
mysqli
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
soap
sockets
SPL
sqlite3
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zip
zlib
[Zend Modules]
imagick.so is located in /usr/local/lib/php/extesio ns/no-debu g-non-zts- 20090626/ if i rename the directory to no-debug-non-zts-20100525 i get the following error or cp the .so file to that new folder name i get the following error:
[root@server admin]# php -v
PHP Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
in Unknown on line 0
PHP 5.4.39 (cli) (built: Apr 16 2015 14:12:04)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
[root@server extensions]# php -v
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extens
PHP 5.4.39 (cli) (built: Apr 16 2015 14:12:04)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
[root@server extensions]# php -m
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extens
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mcrypt
mhash
mysql
mysqli
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
soap
sockets
SPL
sqlite3
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zip
zlib
[Zend Modules]
imagick.so is located in /usr/local/lib/php/extesio
[root@server admin]# php -v
PHP Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
in Unknown on line 0
PHP 5.4.39 (cli) (built: Apr 16 2015 14:12:04)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Good for you.
ASKER
Thanks for the help dave.
You're welcome!
ASKER
fixed the error which some troubleshooting.
ASKER
[root@server bin]# php -v
PHP Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
in Unknown on line 0
PHP 5.4.39 (cli) (built: Apr 16 2015 14:12:04)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies