Solved

How to Enable MBString on a PHP Installation in IIS7

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

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 109

Expert Comment

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

Best regards, ~Ray
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

773 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