LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 10-15-2007, 08:25 PM   #1
sneakyimp
Member
 
Registered: Dec 2004
Posts: 557

Rep: Reputation: 37
phpMyAdmin complaining about mbstring and mcrypt


so I think I have my phpMyAdmin installed properly, but it is complaining about a couple of things that I fear may have wider relevance in my wider MySQL universe:

complaint 1
Code:
The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.
complaint 2
Code:
Cannot load mcrypt extension. Please check your PHP configuration.
Can anyone shed some light on this? What does it mean 'using a multibyte charset'? Is that a MySQL config or a phpmyadmin config?
 
Old 10-17-2007, 06:11 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 9,608

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
mbstring is a php extension to support multibyte characters (such as chinese etc)
mcrpyt is another php extension that support various encryption algorithms.
If your mysql databases use tables with multibyte characters, then you must enable mbstring support in php. As for mcrypt I guess it's used by phpmyadmin to encrypt passwords, etc.
To check if your php installation has support for these extensions, you can run:
Code:
php -i|grep mbstring
php -i|grep mcrypt
These extensions can be installed from source adding " --enable-mbstring" and "--with-mcrypt" to the ./configure script, or if you're using an rpm based distro by installing php-mbstring, php-mcrypt packages
 
Old 10-17-2007, 02:04 PM   #3
sneakyimp
Member
 
Registered: Dec 2004
Posts: 557

Original Poster
Rep: Reputation: 37
OK latest update, I installed both extensions on my CentOS 5 box using yum and then restarting apache.

Code:
yum install php-mbstring
yum install php-mcrypt
service httpd restart
So it was obviously phpMyAdmin complaining about certain modules being missing in php. HOWEVER, It says "you seem to be using a multibyte character set". What on earth is 'using a multibyte character set'? Is it a MySQL setting? a PHP setting? A table within MySQL?
 
Old 10-18-2007, 02:17 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 9,608

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
AFAIK mysql uses by default the latin-1 encoding, so tables with mulitbyte characters (such as chinese, japanese etc) are not manipulated correctly. So I guess this was just a phpmyadmin warning to inform you about this issue.
If you want more info, read about mbstring and about mysql charsets
 
Old 10-18-2007, 10:30 AM   #5
sneakyimp
Member
 
Registered: Dec 2004
Posts: 557

Original Poster
Rep: Reputation: 37
Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need To Install php-mbstring ALInux Red Hat 4 07-22-2007 07:48 PM
using mcrypt Hano Linux - Software 0 12-06-2004 03:47 PM
mbstring not loadable deweirdt Red Hat 0 06-24-2004 03:12 PM
QT complaining wmeler Linux - Software 0 05-13-2004 08:03 PM
i18n gurus...help...size of mbstring ugenn Programming 2 11-09-2003 04:10 PM


All times are GMT -5. The time now is 07:44 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration