Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
1  
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 'extension=mysql.so' and 'extension=gd.so' - 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

1 Answer 1

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

extension=php_gd2.dll

To:

extension=php_gd2.dll

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

extension_dir = "./"

Or:

extension_dir = "./extensions"

I hope that helps

share|improve this answer

Your Answer

 
discard

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.