Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2816
  • Last Modified:

How to Enable MBString on a PHP Installation in IIS7

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
mounty95
Asked:
mounty95
  • 2
  • 2
1 Solution
 
mounty95Author Commented:
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
 
mounty95Author Commented:
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
 
Ray PaseurCommented:
Thanks for the points -- PHP has too many configuration variables!

Best regards, ~Ray
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now