Page 1 of 1
php 5.5 PHP Startup: Unable to load dynamic library
Posted: Wed May 07, 2014 5:28 pm
by DarkF@der
hello
if clients switch from 5.3 -> 5.4 there are no problems if they switch to 5.5 i get these messages:
Code: Select all
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/simplexml.so' - /usr/lib/php/modules/simplexml.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/lib/php/modules/sockets.so' - /usr/lib/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/lib/php/modules/sqlite3.so' - /usr/lib/php/modules/sqlite3.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/lib/php/modules/tokenizer.so' - /usr/lib/php/modules/tokenizer.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/lib/php/modules/xml.so' - /usr/lib/php/modules/xml.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/lib/php/modules/wddx.so' - /usr/lib/php/modules/wddx.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/lib/php/modules/xmlreader.so' - /usr/lib/php/modules/xmlreader.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/lib/php/modules/xmlwriter.so' - /usr/lib/php/modules/xmlwriter.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/lib/php/modules/xsl.so' - /usr/lib/php/modules/xsl.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/lib/php/modules/zip.so' - /usr/lib/php/modules/zip.so: cannot open shared object file: No such file or directory in Unknown on line 0
Any advice?
Re: php 5.5 PHP Startup: Unable to load dynamic library
Posted: Wed May 07, 2014 5:31 pm
by scott
Using the SCL packages I assume?
Re: php 5.5 PHP Startup: Unable to load dynamic library
Posted: Wed May 07, 2014 5:35 pm
by DarkF@der
Thanks for the reply no using 5.3 from nucleas repo and 5.4 (atomic-php54) and 5.5 (atomic-php55) from atomic repo
Re: php 5.5 PHP Startup: Unable to load dynamic library
Posted: Fri May 09, 2014 2:49 pm
by DarkF@der
Anybody?

Re: php 5.5 PHP Startup: Unable to load dynamic library
Posted: Sat May 10, 2014 11:50 am
by scott
Well that path indicates that its trying to use a 32 bit binary. Is that related somehow?
Re: php 5.5 PHP Startup: Unable to load dynamic library
Posted: Sat May 10, 2014 5:08 pm
by DarkF@der
thanks for the reply.
There are no 32-bit packages
rpm -qa atomic-php55-php*
atomic-php55-php-mysqlnd-5.5.12-10.el6.x86_64
atomic-php55-php-mbstring-5.5.12-10.el6.x86_64
atomic-php55-php-common-5.5.12-10.el6.x86_64
atomic-php55-php-fpm-5.5.12-10.el6.x86_64
atomic-php55-php-cli-5.5.12-10.el6.x86_64
atomic-php55-php-devel-5.5.12-10.el6.x86_64
atomic-php55-php-xml-5.5.12-10.el6.x86_64
atomic-php55-php-pdo-5.5.12-10.el6.x86_64
atomic-php55-php-5.5.12-10.el6.x86_64
atomic-php55-php-imap-5.5.12-10.el6.x86_64
atomic-php55-php-mcrypt-5.5.12-10.el6.x86_64
atomic-php55-php-bcmath-5.5.12-10.el6.x86_64
atomic-php55-php-pgsql-5.5.12-10.el6.x86_64
atomic-php55-php-gd-5.5.12-10.el6.x86_64
Re: php 5.5 PHP Startup: Unable to load dynamic library
Posted: Sun May 11, 2014 10:21 am
by scott
So theres a data point then, that config is using the 32 bit paths
Re: php 5.5 PHP Startup: Unable to load dynamic library
Posted: Sun May 11, 2014 1:34 pm
by DarkF@der
Ok... can you explain a little bit more how i can fix this? where to look to solve the prob
Code: Select all
/usr/local/psa/admin/sbin/php_handlers_control --list
id: display name: version: type: cgi-bin: php.ini:
module 5.3.28 5.3.28 module /usr/bin/php-cgi /etc/php.ini
fastcgi 5.3.28 5.3.28 fastcgi /usr/bin/php-cgi /etc/php.ini
cgi 5.3.28 5.3.28 cgi /usr/bin/php-cgi /etc/php.ini
fastcgi-54 5.4 5.4.27 fastcgi /opt/atomic/atomic-php54/root/usr/bin/php-cgi /opt/atomic/atomic-php54/root/etc/php.ini
fastcgi-55 5.5 5.5.11 fastcgi /opt/atomic/atomic-php55/root/usr/bin/php-cgi /opt/atomic/atomic-php55/root/etc/php.ini
Re: php 5.5 PHP Startup: Unable to load dynamic library
Posted: Mon May 12, 2014 8:25 pm
by scott
First if you're using the atomic-phpXX packages, everything is under /opt/atomic/<packagename>. They don't use the system-wide /usr/lib or /usr/lib64 dirs. Second thing is that lib path needs to reflect the architecture its installed on. By default you shouldnt have to modify anything with the individual /opt/atomic/atomic-php*/root/etc/php.ini files
Re: php 5.5 PHP Startup: Unable to load dynamic library
Posted: Wed May 14, 2014 1:56 am
by Keru
Change in /opt/atomic/atomic-php55/root/etc/php.ini and /opt/atomic/atomic-php56/root/etc/php.ini
Code: Select all
; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/lib/php/modules"
Witch
Code: Select all
; Directory in which the loadable extensions (modules) reside.
; http://www.php.net/manual/en/ini.core.php#ini.extension-dir
; extension_dir = "./"
Restar Apache Service and Walaaaa!!!
Re: php 5.5 PHP Startup: Unable to load dynamic library
Posted: Wed May 14, 2014 3:58 pm
by DarkF@der
thanks for the reply but the i get these:
Code: Select all
/opt/atomic/atomic-php55/root/etc/php.ini
; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir =
; Directory in which the loadable extensions (modules) reside.
; extension_dir = "./"
; Whether or not to enable the dl() function. The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
enable_dl = Off
Code: Select all
l
ls -la /opt/atomic/atomic-php55/root/usr/lib64/php/modules
total 6608
drwxr-xr-x 2 root root 4096 May 7 23:16 .
drwxr-xr-x 4 root root 4096 May 2 19:09 ..
-rwxr-xr-x 1 root root 29264 May 2 19:09 bcmath.so
-rwxr-xr-x 1 root root 22440 May 2 19:09 bz2.so
-rwxr-xr-x 1 root root 30616 May 2 19:09 calendar.so
-rwxr-xr-x 1 root root 12712 May 2 19:09 ctype.so
-rwxr-xr-x 1 root root 77544 May 2 19:09 curl.so
-rwxr-xr-x 1 root root 171256 May 2 19:09 dom.so
-rwxr-xr-x 1 root root 60584 May 2 19:09 exif.so
-rwxr-xr-x 1 root root 2708016 May 2 19:09 fileinfo.so
-rwxr-xr-x 1 root root 49608 May 2 19:09 ftp.so
-rwxr-xr-x 1 root root 402160 May 2 19:09 gd.so
-rwxr-xr-x 1 root root 12432 May 2 19:09 gettext.so
-rwxr-xr-x 1 root root 42192 May 2 19:09 iconv.so
-rwxr-xr-x 1 root root 99752 May 2 19:09 imap.so
-rwxr-xr-x 1 root root 1408328 May 2 19:09 mbstring.so
-rwxr-xr-x 1 root root 42200 May 2 19:09 mcrypt.so
-rwxr-xr-x 1 root root 132480 May 2 19:09 mysqlnd_mysqli.so
-rwxr-xr-x 1 root root 49448 May 2 19:09 mysqlnd_mysql.so
-rwxr-xr-x 1 root root 264144 May 2 19:09 mysqlnd.so
-rwxr-xr-x 1 root root 28352 May 2 19:09 pdo_mysqlnd.so
-rwxr-xr-x 1 root root 37056 May 2 19:09 pdo_pgsql.so
-rwxr-xr-x 1 root root 101784 May 2 19:09 pdo.so
-rwxr-xr-x 1 root root 25984 May 2 19:09 pdo_sqlite.so
-rwxr-xr-x 1 root root 123496 May 2 19:09 pgsql.so
-rwxr-xr-x 1 root root 265424 May 2 19:09 phar.so
-rwxr-xr-x 1 root root 47608 May 2 19:09 simplexml.so
-rwxr-xr-x 1 root root 87728 May 2 19:09 sockets.so
-rwxr-xr-x 1 root root 45744 May 2 19:09 sqlite3.so
-rwxr-xr-x 1 root root 15376 May 2 19:09 tokenizer.so
-rwxr-xr-x 1 root root 33256 May 2 19:09 wddx.so
-rwxr-xr-x 1 root root 30192 May 2 19:09 xmlreader.so
-rwxr-xr-x 1 root root 48576 May 2 19:09 xml.so
-rwxr-xr-x 1 root root 44912 May 2 19:09 xmlwriter.so
-rwxr-xr-x 1 root root 33928 May 2 19:09 xsl.so
-rwxr-xr-x 1 root root 94808 May 2 19:09 zip.so
Code: Select all
PHP Warning: PHP Startup: Unable to load dynamic library './sqlite3.so' - ./sqlite3.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 './tokenizer.so' - ./tokenizer.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 './xml.so' - ./xml.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 './wddx.so' - ./wddx.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 './xmlreader.so' - ./xmlreader.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 './xmlwriter.so' - ./xmlwriter.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 './xsl.so' - ./xsl.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 './zip.so' - ./zip.so: cannot open shared object file: No such file or directory in Unknown on line 0
Re: php 5.5 PHP Startup: Unable to load dynamic library
Posted: Sat May 24, 2014 6:31 am
by DarkF@der
Strange...... after the atomic-php55 update this problem is fixed
So there was something wrong on atomic end?
Re: php 5.5 PHP Startup: Unable to load dynamic library
Posted: Sat May 24, 2014 11:38 am
by scott
Yup, it was a bad ini