Centos 6 sys with php5.3.3, php5.6 and php7.0.
Virtual Host set with php5.3.3 Just installed WP.
Adding a plugin I get:

Adaptive Images Error — PHP GD image library missing
The PHP GD image library is not detected in your server. ...

php -m | grep -i gd


rpm -qa | grep php


I could successfully installed the same plugin in another WP installation (different virtual host, same server and php version) I have long time ago.
I don't realize what's going on. I created the virtual host using Virtualmin.
Also switched from 5.3.3 to 7.0 php version but GD wasn't found too


It was a Virtualmin control panel issue.
It displayed a wrong php version used by this Virtual Host. Virtual hosts template is set to use 5.3.3 by default (user can change it later) and it is as it was displayed but phpinfo() displayed 5.6 w/o GD module.
As stated in the question, only 5.3.3 and 7.0 were installed with DG from Virtualmin repositories.
So I solved that installing GD for php5.6 from Centos repositories.
I also have to point out that from Virtualmin CP I "changed" php version to php7.0 but it seems that was not successful because WP still complained about lacking GD.


The versions of PHP and libraries used by the command line (shell) and by the web server (Apache) can be quite different. It might be that the Virtualmin CP switched the command line over to PHP 7 (and associated libraries), but didn't reconfigure Apache. It might be instructive to compare php --ini (or just php -i) with phpinfo(). Apache's use of PHP is via mod_php (see http://php.net/manual/en/configuration.changes.php) but config. might be less direct in your environment.

Another possibility is that Apache was re-configured but not re-started (or perhaps just a re-load is needed). (For background, understand that, for efficiency, Apache only reads some config files on load (after start) or on reload, not with every incoming request.)

  • This server was built 5 years ago with php 5.3. I added 5.6 and 7.0 versions some months ago.php -i displays 5.3.3 conf only. I didn't have extension problems with this version. For php5.6 I had to manually install mbstring too. Always service httpd restart
    – dstonek
    Feb 12 '19 at 23:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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