Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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've Yumed the following onto my server:

httpd php mysql mysql-server php-mysql php-gd

They all installed fine.

Should GD and MySQL be available in PHP after installing those packages, even if phpinfo() doesn't have GD or MySQL listed anywhere except for '--without-mysql', etc in the configure parameters?

Or do I have to enable the modules manually somewhere?

share|improve this question
Did you restart Apache after installing? – quanta Aug 17 '11 at 3:58
If phpinfo() doesn't list them then they are not available. (My phpinfo() outputs show gd, mysql, mysqli (and mysql under PDO)). Typically though, the packages you listed (and their dependencies) are sufficient. Off-hand suggestions are to ensure you are looking at the right install of PHP (check the php.ini file) and to restart httpd/mysqld. (Check /etc/php.d - there should be ini files that have '' and '' - but they are normally created automatically. – cyberx86 Aug 17 '11 at 4:03
sigh Of course a restart would fix it. I thought I did that, but apparently not. Thanks, and if you post it as an answer I'll mark this as solved. – Andrew M Aug 17 '11 at 4:09

In php.ini you have to enable extension=php_gd2.dll, or where ever gd is installed too, it will typically be in c:\php\extensions

or in linux




You may also have to correct the extension directory setting from:

extension_dir = "./"


extension_dir = "./extensions"

I hope that helps

share|improve this answer

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.