Solved

How to Enable MBString on a PHP Installation in IIS7

Posted on 2013-12-03
5
1,997 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
  • 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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…

749 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