Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have modified the php.ini file shown in the Loaded Configuration File value of phpinfo() to set the default_charset to UTF-8:

default_charset = "UTF-8"

enter image description here

However, when I re-run the phpinfo(), I see no change whatsoever. What else do I need to do to make sure this thing gets set?

share|improve this question
up vote 1 down vote accepted

You probably forgot to restart apache afterwards.

share|improve this answer
Why does PHP not load it's config when it "runs". It works on my localhost. – MB34 Jul 25 '13 at 16:10
If you use mod_php (the apache module), you have to restart (or at least reload) apache to get the new configuration running. You don't have to do this for php-cli, fcgi or php-fpm. – etagenklo Jul 26 '13 at 18:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.