MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: lupetalo on 2013-02-17, 19:52:46

Title: No musql in php
Post by: lupetalo on 2013-02-17, 19:52:46
Configure Command    './configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--with-t1lib=/usr' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--without-mime-magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-system-tzdata' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--disable-phar' '--disable-fileinfo' '--disable-json' '--without-pspell' '--disable-wddx' '--without-curl' '--disable-posix' '--disable-sysvmsg' '--disable-sysvshm' '--disable-sysvsem'

that is ouput of phpinfo.
using latest kloxoMR php5.3u
all domains with mysql need gives error like "Your PHP installation appears to be missing the MySQL extension which is required by WordPress." for WP
tries  restarting, all fix-xxx scripts, changing webserver config and nothing worked
Title: Re: No musql in php
Post by: MRatWork on 2013-02-17, 20:22:22
Check inside /etc/php.d. Must be found 'mysql.ini' and or 'mysqli.ini'. If not found, run 'yum install php53u-mysql'.
Title: Re: No musql in php
Post by: lupetalo on 2013-02-17, 21:06:43
there are two mysql.ini files with same name inside, both have same content:
; Enable mysql extension module
extension=mysql.so
after yum install php53u-mysql no php execution at all, page show source, cleanup, fixweb, fixphp not change....
Title: Re: No musql in php
Post by: MRatWork on 2013-02-17, 21:09:15
No. mysql.ini with content 'extension=mysql.so' and mysqli.ini with content 'extension=mysqli.so'
Title: Re: No musql in php
Post by: lupetalo on 2013-02-17, 21:21:34
rebot seames to fixed it. Why is this thing happening in the first place?
Title: Re: No musql in php
Post by: MRatWork on 2013-02-17, 21:33:46
For php-fpm, you must run 'service php-fpm restart' after add php module. Don't need reboot.
Title: Re: No musql in php
Post by: lupetalo on 2013-02-17, 21:39:56
it is not php-fpm its mod ruid2, and httpd restart should make the change. My question is why did i need to run 'yum install php53u-mysql' or check those files. This should be done by cleanup script....
Title: Re: No musql in php
Post by: MRatWork on 2013-02-17, 21:47:07
Php54 remove mysql module from 'standard' package. It's php policy.

Bigger company have the some policy. They are migrate to MariaDB.