PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #31  
Old June 23rd, 2006, 08:30 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: mbstring configuration

I'm using IIS and solved this by copying the php_mbstring.dll to the PHPMyAdmin folder and un-commenting the relevant line in the ini file

Thanks all
Dave

Reply With Quote
  #32  
Old June 29th, 2006, 01:53 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: RE: mbstring configuration


Quote:
If you compile PHP from scratch, you need to add --enable-mbstring to the configure line. Then "make" and "make install" as usual.


Thanks a lot. It resolved my problem.

Chen

Reply With Quote
  #33  
Old June 29th, 2006, 09:39 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: mbstring configuration

You can find your apache base dir by using the phpinfo() function...its usually /usr/local/apache/

I downloaded php_mbstring.dll cuz it did not exist on my server yet. I got the file from here http://kromann.info/download.php?strFolder=php4-Release_TS&strIndex=PHP4
I copied php_mbstring.dll to my base apache dir.

Now i have the following lines in php.ini :
extension=php_mbstring.dll
mbstring.encoding_translation = 1

I had to add both of these lines, as my php.ini didn't have them already commented out. After restarting apache, when i try to use a function from mbstring, i get the following error:

Fatal error: Call to undefined function: mb_convert_encoding()

I don't understand wut i have to do in order to get access to this function. Any help would be appreciated.

Reply With Quote
  #34  
Old June 29th, 2006, 09:58 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: mbstring configuration

meh, i gave up and just decided to use this guy's character conversion class ( http://mikolajj.republika.pl/ )...no messing around w/ php.ini, no installing libraries...

Reply With Quote
  #35  
Old August 7th, 2006, 01:04 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: RE: mbstring configuration


Quote:
hi everyone
!!!NEED HELP !!!

when i try to run phpmyadmin i am having an error message at the bottom which says:

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.

i found ;extension=php_mbstring.dll in php.ini and uncomment it like extension=php_mbstring.dll
but i did not quite understand how to copy php_mbstring.dll to base dir can some one tell me where is that base dir for apache.
ANY HELP THAT SOMEONE COULD GIVE ME WOULD BE GREATLY APPRECIATED REALLY STUCKED.
THANKS...


Try to search for "extension_dir" in your php.ini and put the php_mbstring.dll in that directory, it should work.

Hope this would help
Cheers,
Js


Reply With Quote
  #36  
Old August 25th, 2006, 12:36 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: mbstring configuration

love u long time

Reply With Quote
  #37  
Old August 29th, 2006, 01:28 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: mbstring configuration

on linux


yum install php-mbstring

bazing.

Reply With Quote
  #38  
Old January 4th, 2007, 10:04 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: mbstring configuration

PHPMyAdmin 2.9.11
That's all well ang good if one is the admin of the box, but on virtual hosts one can't yum, up2date nor anything else.
How do I get PHP to use mbstring?

Reply With Quote
  #39  
Old January 28th, 2007, 12:09 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: mbstring configuration

I just fixed it by reading here. On a Linux Fedora 4 system by doing:

yum install php-mbstring

It installes that and just go back to your phpMyAdmin and reload it and you don't see that error at the bottum of the page any more!

-Raymond Day

Reply With Quote
  #40  
Old March 1st, 2007, 04:37 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: mbstring configuration

Thanks for the help with mbstring configurations. I reviewed all post and was able to find my fix.

I am using OpenSuse 10.2, MySQL 5, PHP5, and phpMyAdmin 2.8.1.

I used Yast to install the php-mbstring package, and restarted apache.

Many Thanks to all who contribute their knowledge....
bobbyc

Reply With Quote
  #41  
Old April 17th, 2007, 05:40 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: mbstring configuration

This helped me: On Red Hat Enterprise Linux, only up2date is initially available for installing packages.

Opening a terminal window, I was able to install the mbstring package by issuing this command:

up2date -i php-mbstring

Reply With Quote
  #42  
Old April 19th, 2007, 05:00 AM
golden_gunman golden_gunman is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 golden_gunman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: mbstring configuration

I have the same problem. I had this problem with another machine, and managed to fix it, but I can't fix it on my secondary machine. here are the steps I have done:

- Changed the Extensions directory to:
extension_dir = "C:/php/extensions"

- Uncommented the extensions in php.ini
extension=php_mbstring.dll

- Copied php_mystring.dll to Apache root folder and to windows / system32

Restarted the Apache service

Still no luck, the same message is shown '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.'

Bizzarely, I can also no longer view my phpinfo.php script. I can view my databases with no problem but this script no longer loads...

Are there any other steps I can try?

Reply With Quote
  #43  
Old August 18th, 2007, 02:34 PM
sirryche sirryche is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 1 sirryche User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 52 sec
Reputation Power: 0
not sure on apache

Quote:
Originally Posted by Anonymous
Which folder is the base dir in apache?
Its the base that confuse me


i'm not sure on apache but i'm using IIS6 and i ended up droping the dll files in my windows/system and windows/system32 files and all works well

Reply With Quote
  #44  
Old January 4th, 2008, 05:13 PM
jwarner_wri jwarner_wri is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 1 jwarner_wri User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 39 sec
Reputation Power: 0
Linux mbstring problem

Quote:
Originally Posted by Anonymous
I am having the same error, I am using Linux Fedora Core 4. Can someone tell how to fix this? Please, I am a newbie at this. Thank you

Error "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." Error


I'm having the same problem in Fedora Core 4 as well - very new to system admin type tasks. I've found lots of posts and tried installing with 'yum search mbstring' with no luck.

Reply With Quote
  #45  
Old February 12th, 2008, 11:13 PM
trogar1971 trogar1971 is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 4 trogar1971 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 24 m 55 sec
Reputation Power: 0
The CORRECT way to enable mbstring

Firstly, some people in this thread are talking about moving the libraries/dll files to the root, but this is not a good way to keep the structure of the php install so that you can find things you might need later. To enable ANY module in PHP is a fairly simple process, no matter which OS you are using because PHP is not an OS dependent protocol or language. But to do so, you will need to check directory structure and open up your php.ini to make some changes.

Firstly, you need to browse to the place where PHP is installed on your machine, regardless of platform. When you find where PHP is installed, you need to open the folder and look for a folder called ext. In that folder, you will find a bunch of modules you can enable for your specific build of PHP. This is the PHP extension directory, and if the extension does not exist there, then your PHP build did not include the extension in question, and you will have to either rebuild it or find a ready made solution with the required extensions built into it. Look in this folder to see if mbstring exists. If it does, then you are set. If not, then you will need to rebuild or find another solution as previously mentioned.

In the meanwhile, back up to the directory where PHP is installed and open the php.ini file. Scroll through that file and look for a place like follows:

Code:
; Directory in which the loadable extensions (modules) reside.


Just below that line should be a line that starts with as follows:

Code:
extension_dir = 


After that is where you put the path that tells PHP where your extension directory is located within your file structure. For example, I am running a WAMP stack (Windows, Apache, MySQL, and PHP), so what my line looks like is as follows:

Code:
extension_dir = "D:/Apache2-2-8/php5-2-5/ext/"


Note, this is a FILE PATH based on your system's drive and folder structure.

Once you have this variable set, you need to move to the long listing of extensions that are commented out. Do a search for the following:

Code:
;extension=php


This should put you in the general area where the long list of enableable extensions are located. Scroll down until you find ;extension=php_mbstring.dll and uncomment it by deleting the ";" in front of the line. Restart your server and your extensions should be loaded.

Keep in mind this is for those with their own server which they have control over. If you are on a paid host and they do not allow per directory php.ini over rides and they do not have your extension compiled in their PHP build, you will not have these options.

This is the PROPER way of enabling extensions so that when you go to upgrade your PHP installations, you have less trouble with stray files laying around where they do not belong.

Hope this helps out.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > mbstring configuration


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump