MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Development => Topic started by: ibuxxi on 2014-03-26, 16:45:42
-
Hello
i have new install kloxo
reboot
cleanup
but restart make errors
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/geoip.so' - /opt/php53s/usr/lib/php/modules/geoip.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/imagick.so' - /opt/php53s/usr/lib/php/modules/imagick.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/pdo_pgsql.so' - /opt/php53s/usr/lib/php/modules/pdo_pgsql.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/pgsql.so' - /opt/php53s/usr/lib/php/modules/pgsql.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/xcache.so' - /opt/php53s/usr/lib/php/modules/xcache.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
and
./fixphpfpm
Could not open input file: ../bin/fix/fixphpfpm.php
-
Using 6.5.0 or 6.5.1 in 32bit or 64bit OS?.
If 64bit, try 'ln -sf /opt/php53s/usr/lib64 /opt/php53s/usr/lib'
-
Using 6.5.0 or 6.5.1 in 32bit or 64bit OS?.
A. Kloxo-MR: 6.5.1.b-2014032502
B. OS: CentOS release 6.5 (Final) i686
C. Apps:
1. MySQL: MariaDB-server-5.5.36-1.el6.i686
2. PHP: php53u-5.3.28-2.ius.el6.i686
3. Httpd: httpd-2.2.26-2.el6.i686
4. Lighttpd: --uninstalled--
5. Hiawatha: hiawatha-9.3.1-1.mr.el6.i386
6. Nginx: nginx-1.5.12-1.el6.i686
7. Cache: --uninstalled--
8. Dns: pdns-3.3.1-1.el6.i686
9. Qmail: qmail-toaster-1.03-1.3.38.mr.el6.i386
- with: courier-imap-toaster-4.1.2-1.3.16.mr.el6.i386
D. Php-type (for Httpd/proxy): php-fpm_event
E. Memory:
total used free shared buffers cached
Mem: 1893 368 1525 0 28 206
-/+ buffers/cache: 133 1760
Swap: 0 0 0
-
Still found error if restart?.
Try 'sh /script/fixlxphp.exe' or 'sh /script/fixlxphp.exe php53s'
-
what is better for
2048MB RAM
4 CPU Core Access KVM
VPS 32 or 64bit ?
-
I found a problem for Centos 6 64bit for memory usage. Look like something wrong with Centos itself but possible fixed in next release of Centos.
-
sh /script/fixlxphpexe
Execute fixlxphpexe for php53s...
php-fpm starten: <br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/geoip.so' - /opt/php53s/usr/lib/php/modules/geoip.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/imagick.so' - /opt/php53s/usr/lib/php/modules/imagick.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/pdo_pgsql.so' - /opt/php53s/usr/lib/php/modules/pdo_pgsql.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/pgsql.so' - /opt/php53s/usr/lib/php/modules/pgsql.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/xcache.so' - /opt/php53s/usr/lib/php/modules/xcache.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
[ OK ]
sh /script/fixlxphp.exe php53s
sh: /script/fixlxphp.exe: Datei oder Verzeichnis nicht gefunden
[root@happy2 script]# sh /script/fixlxphpexe php53s
Execute fixlxphpexe for php53s...
[root@happy2 script]# ./restart-all
Shutting down MySQL. SUCCESS!
Starting MySQL. SUCCESS!
Restarting PowerDNS authoritative nameserver: stopping and waiting..done
Starting PowerDNS authoritative nameserver: started
httpd beenden: [ OK ]
httpd starten: [ OK ]
nginx beenden: . [ OK ]
nginx starten: [ OK ]
Stopping qmail-toaster: svscan qmail logging.
qmail-send: Kein Prozess abgebrochen
Starting qmail-toaster: svscan.
xinetd beenden: [ OK ]
xinetd starten: [ OK ]
Stopping kloxo-phpcgi: [ OK ]
Starting kloxo-phpcgi: [ OK ]
Stopping kloxo-hiawatha: [ OK ]
Starting kloxo-hiawatha: [ OK ]
php-fpm beenden: [ OK ]
php-fpm starten: <br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/geoip.so' - /opt/php53s/usr/lib/php/modules/geoip.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/imagick.so' - /opt/php53s/usr/lib/php/modules/imagick.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/pdo_pgsql.so' - /opt/php53s/usr/lib/php/modules/pdo_pgsql.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/pgsql.so' - /opt/php53s/usr/lib/php/modules/pgsql.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/xcache.so' - /opt/php53s/usr/lib/php/modules/xcache.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
[ OK ]
-
Inform here 'dir -l /usr/bin/*php*' and 'lxphp.exe -m'
-
lrwxrwxrwx 1 root root 29 26. Mär 12:22 /usr/bin/lphp.exe -> /opt/php53s/custom/php-cli.sh
lrwxrwxrwx 1 root root 29 26. Mär 12:22 /usr/bin/lxphp.exe -> /opt/php53s/custom/php-cli.sh
-rwxr-xr-x. 1 root root 4193928 5. Mär 17:44 /usr/bin/php
lrwxrwxrwx. 1 root root 29 26. Mär 10:50 /usr/bin/php52s -> /opt/php52s/etc/php52s-cli.sh
lrwxrwxrwx. 1 root root 29 26. Mär 10:58 /usr/bin/php53s-cgi -> /opt/php53s/custom/php-cgi.sh
lrwxrwxrwx. 1 root root 29 26. Mär 10:58 /usr/bin/php53s-cli -> /opt/php53s/custom/php-cli.sh
lrwxrwxrwx. 1 root root 29 26. Mär 10:58 /usr/bin/php53s-fpm -> /opt/php53s/custom/php-fpm.sh
-rwxr-xr-x. 1 root root 4207052 5. Mär 17:44 /usr/bin/php-cgi
-rwxr-xr-x. 1 root root 4483 5. Mär 17:44 /usr/bin/phpize
lxphp.exe -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
enchant
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imap
intl
json
ldap
libxml
mbstring
mcrypt
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
pspell
readline
recode
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib
[Zend Modules]
de]
-
Hmm, look like nothing wrong with php53s.
Try change to another branch and change to original (from panel).
-
i switch 5.3u - 55 - and back to 5.3u
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/geoip.so' - /opt/php53s/usr/lib/php/modules/geoip.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/pdo_pgsql.so' - /opt/php53s/usr/lib/php/modules/pdo_pgsql.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/pgsql.so' - /opt/php53s/usr/lib/php/modules/pgsql.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
-
There are something wrong with php (for website) instead php53s (for panel).
Php wrong reading modules.
What's happen when running 'php -v'?.
-
Did you try 'sh /script/fixphp' and 'sh /script/fixweb'?
-
php -v
PHP 5.3.28 (cli) (built: Mar 5 2014 17:36:57)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
with XCache v3.1.0, Copyright (c) 2005-2013, by mOo
with the ionCube PHP Loader v4.5.3, Copyright (c) 2002-2014, by ionCube Ltd.
with XCache Optimizer v3.1.0, Copyright (c) 2005-2013, by mOo
with XCache Cacher v3.1.0, Copyright (c) 2005-2013, by mOo
with XCache Coverager v3.1.0, Copyright (c) 2005-2013, by mOo
-
Did you try 'sh /script/fixphp' and 'sh /script/fixweb'?
Yes
-
What's about 'php -m' and 'php-fpm -m'
-
php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
geoip
gettext
gmp
hash
iconv
ionCube Loader
json
libxml
mbstring
mcrypt
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
XCache
XCache Cacher
XCache Coverager
XCache Optimizer
xml
xmlreader
xmlwriter
xsl
zip
zlib
[Zend Modules]
XCache
XCache Cacher
XCache Coverager
XCache Optimizer
the ionCube PHP Loader
php-fpm -m
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/geoip.so' - /opt/php53s/usr/lib/php/modules/geoip.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/pdo_pgsql.so' - /opt/php53s/usr/lib/php/modules/pdo_pgsql.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/pgsql.so' - /opt/php53s/usr/lib/php/modules/pgsql.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/xcache.so' - /opt/php53s/usr/lib/php/modules/xcache.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
[PHP Modules]
bcmath
bz2
calendar
cgi-fcgi
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
ionCube Loader
json
libxml
mbstring
mcrypt
mysql
mysqli
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zip
zlib
[Zend Modules]
the ionCube PHP Loader
-
Inform here 'cat /etc/rc.d/init.d/php-fpm'
-
cat /etc/rc.d/init.d/php-fpm
#! /bin/sh
#
# chkconfig: - 84 16
# description: PHP FastCGI Process Manager
# processname: php-fpm
# config: /etc/php-fpm.conf
# pidfile: /var/run/php-fpm/php-fpm.pid
# Standard LSB functions
#. /lib/lsb/init-functions
# Source function library.
. /etc/init.d/functions
# Check that networking is up.
. /etc/sysconfig/network
if [ "$NETWORKING" = "no" ]
then
exit 0
fi
RETVAL=0
prog="php-fpm"
pidfile=${PIDFILE-/var/run/php-fpm/php-fpm.pid}
lockfile=${LOCKFILE-/var/lock/subsys/php-fpm}
start () {
echo -n $"Starting $prog: "
daemon --pidfile ${pidfile} php-fpm
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch ${lockfile}
}
stop () {
echo -n $"Stopping $prog: "
killproc -p ${pidfile} php-fpm
RETVAL=$?
echo
if [ $RETVAL -eq 0 ] ; then
rm -f ${lockfile} ${pidfile}
fi
}
restart () {
stop
start
}
reload () {
echo -n $"Reloading $prog: "
killproc -p ${pidfile} php-fpm -USR2
RETVAL=$?
echo
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status -p ${pidfile} php-fpm
RETVAL=$?
;;
restart)
restart
;;
reload|force-reload)
reload
;;
condrestart|try-restart)
[ -f ${lockfile} ] && restart || :
;;
*)
echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
RETVAL=2
;;
esac
exit $RETVAL
-
Find out 'extension_dir' where possible with 'extension_dir = /opt/php53s/usr/lib/php/modules' and change to 'extension_dir = /usr/lib/php/modules' in php.ini.
-
/etc/php.ini was extension_dir = /usr/lib/php/modules
no change
-
It's weird. Is something wrong with php53u from ius?.
What's about when using php54?.
-
php54 and wp
Deine PHP-Installation scheint nicht über die von WordPress benötigte MySQL-Erweiterung zu verfügen.
Your PHP installation does not seem to have the necessary WordPress MySQL extension.
-
Php 5.4 have a problem with mysql module. Some applications need mysql/mysqli module but others need mysqlnd. Mysql/mysqli and mysqlnd not able to install together.
No issue install together in php 5.5.
-
php55u and wp
Deine PHP-Installation scheint nicht über die von WordPress benötigte MySQL-Erweiterung zu verfügen.
Your PHP installation does not seem to have the necessary WordPress MySQL extension.
-
Try 'yum install php55u-mysql*'. And then '/script/restart-web'.
-
but php55u no xcache ?
-
already installed
yum install php55u-mysql*
Loaded plugins: fastestmirror, priorities, protectbase, replace
Loading mirror speeds from cached hostfile
* base: centos.mirror.constant.com
* extras: centos.mirror.constant.com
* mratwork-epel: ftp.linux.ncsu.edu
* mratwork-ius: archive.linux.duke.edu
* updates: centos.mirror.constant.com
0 packages excluded due to repository protections
Setting up Install Process
Package php55u-mysqlnd-5.5.10-1.ius.el6.i686 already installed and latest version
Nothing to do
-
Install opcache with 'yum php55u-opcache'.
-
php53u
why nor pgsql.so pdo_pgsql.so geoip.so in modules ?
[root@happy2 script]# cd /opt/php53s/usr/lib/php/modules/
[root@happy2 modules]# ls
bcmath.so enchant.so imap.so ldap.so mysqli.so pdo.so posix.so snmp.so sysvsem.so wddx.so xmlwriter.so
curl.so fileinfo.so intl.so mbstring.so mysql.so pdo_sqlite.so pspell.so soap.so sysvshm.so xmlreader.so xsl.so
dom.so gd.so json.so mcrypt.so pdo_mysql.so phar.so recode.so sysvmsg.so tidy.so xmlrpc.so zip.so
-
it's default installing. You can remove with 'yum php53u-pgsql php53u-pqsql php53u-geoip.
-
why is not pgsql.so pdo_pgsql.so geoip.so in modules directory
so it can not be loaded
yum list php53u-*
Loaded plugins: fastestmirror, priorities, protectbase, replace
Loading mirror speeds from cached hostfile
* base: centos.mirror.constant.com
* extras: centos.mirror.constant.com
* mratwork-epel: ftp.linux.ncsu.edu
* mratwork-ius: archive.linux.duke.edu
* updates: centos.mirror.constant.com
0 packages excluded due to repository protections
Installed Packages
php53u.i686 5.3.28-2.ius.el6 @mratwork-ius
php53u-bcmath.i686 5.3.28-2.ius.el6 @mratwork-ius
php53u-cli.i686 5.3.28-2.ius.el6 @mratwork-ius
php53u-common.i686 5.3.28-2.ius.el6 @mratwork-ius
php53u-fpm.i686 5.3.28-2.ius.el6 @mratwork-ius
php53u-gd.i686 5.3.28-2.ius.el6 @mratwork-ius
php53u-ioncube-loader.i686 4.5.3-1.ius.el6 @mratwork-ius
php53u-mbstring.i686 5.3.28-2.ius.el6 @mratwork-ius
php53u-mcrypt.i686 5.3.28-2.ius.el6 @mratwork-ius
php53u-mysql.i686 5.3.28-2.ius.el6 @mratwork-ius
php53u-pdo.i686 5.3.28-2.ius.el6 @mratwork-ius
php53u-pear.noarch 1:1.9.4-3.ius.el6 @mratwork-ius
php53u-pecl-geoip.i686 1.0.8-1.ius.el6 @mratwork-ius
php53u-pgsql.i686 5.3.28-2.ius.el6 @mratwork-ius
php53u-process.i686 5.3.28-2.ius.el6 @mratwork-ius
php53u-xcache.i686 3.1.0-1.ius.el6 @mratwork-ius
php53u-xml.i686 5.3.28-2.ius.el6 @mratwork-ius
php53u-zts.i686 5.3.28-2.ius.el6 @mratwork-ius
Available Packages
php53u-dba.i686 5.3.28-2.ius.el6 mratwork-ius
php53u-debuginfo.i686 5.3.28-2.ius.el6 mratwork-ius
php53u-devel.i686 5.3.28-2.ius.el6 mratwork-ius
php53u-eaccelerator.i686 0.9.6.1-31.ius.el6 mratwork-ius
php53u-eaccelerator-debuginfo.i686 0.9.6.1-31.ius.el6 mratwork-ius
php53u-embedded.i686 5.3.28-2.ius.el6 mratwork-ius
php53u-enchant.i686 5.3.28-2.ius.el6 mratwork-ius
php53u-imap.i686 5.3.28-2.ius.el6 mratwork-ius
php53u-intl.i686 5.3.28-2.ius.el6 mratwork-ius
php53u-ioncube-loader-debuginfo.i686 4.5.3-1.ius.el6 mratwork-ius
php53u-ldap.i686 5.3.28-2.ius.el6 mratwork-ius
php53u-litespeed.i686 5.3.28-2.ius.el6 mratwork-ius
php53u-milter.i686 5.3.28-2.ius.el6 mratwork-ius
php53u-mssql.i686 5.3.28-2.ius.el6 mratwork-ius
php53u-odbc.i686 5.3.28-2.ius.el6 mratwork-ius
php53u-pecl-apc.i686 3.1.9-4.ius.el6 mratwork-ius
php53u-pecl-apc-debuginfo.i686 3.1.9-4.ius.el6 mratwork-ius
php53u-pecl-geoip-debuginfo.i686 1.0.8-1.ius.el6 mratwork-ius
php53u-pecl-imagick.i686 3.1.2-1.ius.el6 mratwork-ius
php53u-pecl-imagick-debuginfo.i686 3.1.2-1.ius.el6 mratwork-ius
php53u-pecl-lzf.i686 1.6.2-7.ius.el6 mratwork-ius
php53u-pecl-lzf-debuginfo.i686 1.6.2-7.ius.el6 mratwork-ius
php53u-pecl-memcache.i686 3.0.8-1.ius.el6 mratwork-ius
php53u-pecl-memcache-debuginfo.i686 3.0.8-1.ius.el6 mratwork-ius
php53u-pecl-memcached.i686 1.0.0-3.ius.el6 mratwork-ius
php53u-pecl-memcached-debuginfo.i686 1.0.0-3.ius.el6 mratwork-ius
php53u-pecl-mongo.i686 1.4.5-1.ius.el6 mratwork-ius
php53u-pecl-mongo-debuginfo.i686 1.4.5-1.ius.el6 mratwork-ius
php53u-pecl-redis.i686 2.2.4-3.ius.el6 mratwork-ius
php53u-pecl-redis-debuginfo.i686 2.2.4-3.ius.el6 mratwork-ius
php53u-pecl-xdebug.i686 2.2.4-1.ius.el6 mratwork-ius
php53u-pecl-xdebug-debuginfo.i686 2.2.4-1.ius.el6 mratwork-ius
php53u-pspell.i686 5.3.28-2.ius.el6 mratwork-ius
php53u-recode.i686 5.3.28-2.ius.el6 mratwork-ius
php53u-snmp.i686 5.3.28-2.ius.el6 mratwork-ius
php53u-soap.i686 5.3.28-2.ius.el6 mratwork-ius
php53u-suhosin.i686 0.9.35-1.ius.el6 mratwork-ius
php53u-suhosin-debuginfo.i686 0.9.35-1.ius.el6 mratwork-ius
php53u-tidy.i686 5.3.28-2.ius.el6 mratwork-ius
php53u-xcache-debuginfo.i686 3.1.0-1.ius.el6 mratwork-ius
php53u-xmlrpc.i686 5.3.28-2.ius.el6 mratwork-ius
php53u-zend-guard.i686