Solved

How to Enable MBString on a PHP Installation in IIS7

Posted on 2013-12-03
5
2,199 Views
Last Modified: 2013-12-04
I am attempting to run an application that was created for me in PHP.  When I navigate to the application page, I get the following error:

The PHP must have the mbstring extension enabled. Please contact technical support.

I understand from reading around that mbstring is not enabled by default.  So I went back into the php.ini file and removed the ";" before each line that referred to an mbstring variable.  I restarted the IIS server, but when I run a phpinfo page, I see no reference to mbstring so I am wondering whether or not mbstring is actually enabled.  

Could someone provide further guidance to a very new PHP user?

Thank you in advance.
0
Comment
Question by:mounty95
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 110

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 39694014
0
 

Author Comment

by:mounty95
ID: 39694141
Ray,

I read all of those articles before I posted.  As I stated in my initial post, I thought that I had enabled all of the mbstring variables discussed in the articles that you referenced.  I restarted IIS, but am not getting any further than that.  I am looking for something a little more substantive.  Everything that I read talks about PHP being set up in an Apache environment, so I was hoping for some guidance towards how IIS might be misconfigured.

I made sure that the dll for mbstring is in the ext directory.  I made sure to comment out all of the mbstring variables in php.ini.  What else could I be missing?  I don't see mbstring referenced in the phpinfo page that I created to test.  Is there something else within IIS that I have to do?  Something more with mappings or anything?
0
 

Author Closing Comment

by:mounty95
ID: 39696786
Being very unfamiliar with PHP and the whole php.ini file configuration and being focused on the mbstring variables I did not know that this file would also effect where PHP looked for the extensions.

Basically, I first missed the:  extension_dir="ext" which was commented out.  I have to hand it to the developers of PHP, they sure locked the configuration down initially when installing.

I then had to ensure that the:  extension=msql.dll was uncommented for MS SQL Server and that all of those settings were enabled as well.
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 39696798
Thanks for the points -- PHP has too many configuration variables!

Best regards, ~Ray
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question