how to enable mbstring in PHP

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Forum Newbie
Posts: 6
Joined: Thu Nov 30, 2017 10:18 pm

how to enable mbstring in PHP

Post by Joeldcruz »

Hi all,

I want to enable the mbstring in the .ini file(server). How i can enable?
Please any one help me.

User avatar
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: how to enable mbstring in PHP

Post by requinix »

On Windows, find your php.ini (use phpinfo() if you don't know where it is), uncomment the appropriate extension= line, and restart Apache/nginx/your web server.

On Linux, install whatever mbstring PHP package your distribution uses. Probably named like "php*-mbstring".

On Mac, I don't know. I imagine it's the same process as Windows.
User avatar
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: how to enable mbstring in PHP

Post by Celauran »

For macOS, I'm pretty sure a. it's a compile-time option, and b. both the version that ships with the OS and the homebrew versions include it by default. You shouldn't need to do anything.
Post Reply