Go Back   Cloud Computing > Support > Control Panel Forum
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-19-11, 04:41
BOD Member
 
Join Date: Nov 2010
Posts: 202
Default Make phpmyadmin work with mysqli

Does anybody know how to make phpmyadmin work with mysqli?
I am getting a "Cannot load mysqli extension. Please check your PHP configuration" error in phpmysql

I've built apache2.2/php5.2.4 with mysqli support, phpinfo lists mysqli as enabled:

Quote:
MysqlI Support enabled
Client API library version 5.0.45
Client API header version 5.0.45
MYSQLI_SOCKET /var/lib/mysql/mysql.sock

Directive Local Value Master Value
mysqli.default_host no value no value
mysqli.default_port 3306 3306
mysqli.default_pw no value no value
mysqli.default_socket no value no value
mysqli.default_user no value no value
mysqli.max_links Unlimited Unlimited
mysqli.reconnect Off Off
Reply With Quote
  #2 (permalink)  
Old 09-19-11, 05:22
BOD Member
 
Join Date: Dec 2010
Posts: 227
Default

You can delete the /var/cpanel/usecpphp file with Easy Apache built binary or remove this you can change the /scripts/makecpphp.profile.yaml file to include MySQLi support.
Reply With Quote
  #3 (permalink)  
Old 09-19-11, 06:04
BOD Member
 
Join Date: Nov 2010
Posts: 202
Default

77wmaster ,
I already tried these ways and did not get any result in phpmyadmin behavior.

It definitely listed mysqli, when it was rebuilding php:
Quote:
-- Begin opt 'Mysqli' --
-- Begin dryrun test 'mysql compilation test' --
-- End dryrun test 'mysql compilation test' --
-- Begin step 'to config options' --
-- End step 'to config options' --
-- End opt 'Mysqli' --
...cut...

--with-mysqli=/usr/bin/mysql_config

...cut...

checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... no
Can anyone suggest anything more?
Reply With Quote
  #4 (permalink)  
Old 09-19-11, 06:28
BOD Member
 
Join Date: Dec 2010
Posts: 227
Default

According to PHP: Mysqli - Manual, there is no requirement of Embedded MySQL for MySQLi. In any case, if the other MySQL extensions are enabled, it is possible PHP is defaulting to them, rather than the MySQLi extension.
Reply With Quote
  #5 (permalink)  
Old 09-19-11, 06:44
BOD Member
 
Join Date: Nov 2010
Posts: 202
Default

Alright , Without mysql extension, I had restored php but got that same message from phpmyadmin.

But one point I understand is that - horde now displays blank page if I try to login through cpanel "webmail" shortcut. I assume it happens, cause it cannot find mysql extension.
If I login through domainname/webmail, it works fine.
Reply With Quote
  #6 (permalink)  
Old 09-20-11, 02:20
BOD Member
 
Join Date: Dec 2010
Posts: 227
Default

The message I receive from PHPMyAdmin is:
QT : Cannot load mysql extension. Please check your PHP configuration
which is because I do not have it installed:

Code:
Quote:
[root@ea3ap13 php-5.2.4]# php -m
[PHP Modules]
bcmath
calendar
ctype
date
dom
filter
ftp
hash
iconv
imap
json
libxml
mcrypt
mysqli
pcre
PDO
pdo_sqlite
posix
Reflection
session
SimpleXML
sockets
SPL
SQLite
standard
tokenizer
xml
xmlreader
xmlwriter
zlib

[Zend Modules]
But, PHPMyAdmin seemed to work OK. Adding data worked without any issue.
Reply With Quote
  #7 (permalink)  
Old 09-20-11, 21:22
BOD Member
 
Join Date: Dec 2010
Posts: 170
Default

Hi,
Also I am facing this problem.
Reply With Quote
  #8 (permalink)  
Old 09-21-11, 01:43
BOD Member
 
Join Date: Nov 2010
Posts: 202
Default

Hello 10nancy,
I got it working eventually, but it is kinda pointless cause cPanel overwrites phpMyAdmin config.inc.php file on update, switching it back to plain mysql.
Reply With Quote
  #9 (permalink)  
Old 09-21-11, 05:06
BOD Member
 
Join Date: Dec 2010
Posts: 227
Default

Hi nancy,
I got it working eventually, but it is kinda pointless cause cPanel overwrites phpMyAdmin config.inc.php file on update, switching it back to plain mysql.

If it only requires modifications to the configuration file, then utilize the /scripts/postupcp to restore your changed version. Quick pseudo code:

Quote:
# mkdir /root/custom_configs
# cp /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php /root/custom_configs/phpmyadmin_config.inc.php
# echo "cp -f /root/custom_configs/phpmyadmin_config.inc.php /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php" >> /scripts/postupcp
# chmod +x /scripts/postupcp
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 06:02.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.