So, I'm a huge newbie to this stuff. Have been a BI developer for a while and getting into some web design and development. I am hitting my head against a wall in disbelief why I can't get Drupal to install. HELP!!

So, I have a PC that I wiped out and loaded Ubuntu 12.0.4 LTS on and I installed the latest version of PostgreSQL as a database back end. So, I decide to install Drupal 7.22 and am reading through the requirements and go ahead and install PHP 5.3.24 and Apache.

When I fire up the install.php script I get the error that I've shown in the subject line of this topic. I have googled until my eyes are bleeding trying all suggestions and looked at the Drupal documentation and absolutely nothing.

For the life of me I can't understand why I'm unable to get through the install. I have done the apt-get install php5-gd. I see a gd.so file. When I run the phpinfo() I don't see anything about GD in the output.

So my gut feel, which is probably way off, is that there two versions of PHP on my machine. One when I installed the OS and one that I install manually by downloading it from the PHP site?

I would appreciate any suggestions and troubleshooting advice. If I'm having this much trouble on the install, I'm afraid this doesn't bode well for my initial crack at some development.

Thanks

Comments

john_b’s picture

I assume you restarted the web server? You should check that this extension is enabled (usually in php.ini but with some setups in an included directory of .ini files for extensions). Then restart the web server. the phpinfo.php output will show you which php.ini file is loaded.

It is not unusual to find more than one directory containing php extensions if there is more than one version, and when checking your php.ini to see that the extensions you need are enabled, check that the directory for extensions is the same which actually contains the extensions. Once

Of course apt-get should handle this but does not always, especially where there are versions installed some other way or with a different package manager.

On an unrelated point, 90% of Drupal sites use Mysql, which makes getting advice on Mysql easier, and not all contrib modules correctly implement db queries which can lead to Postgre being unsupported by some modules, though that should not happen.

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors

dunx’s picture

I needed to sudo apt-get install php5.6-gd and restart Apache to get past the Drupal installation screen

guybrush threepwood’s picture

Thanks for this!

parvind87’s picture

This worked for me -
sudo apt-get install php5-gd

joshua1234511’s picture

This Worked for me also

Joshua Fernandes aka "joshua1234511"
fernandesjoshua.com | Goa, India

andrezstar’s picture

+1
Cheers

meenakshi-dhanani’s picture

Install php-gd package. Post installing if the error persists, uncomment the following line in /etc/php/php.ini
"extension=gd.so"
Worked for me!

makbul_khan8’s picture

Thanks @meenakshi-dhanani

grinder3011’s picture

I am having a similar problem so redirect me if this is the wrong post or if I should create a new issue for this. Anyhow, after following the instructions for installing drupal social distribution via their GitHub page after running the command :

drush -y site-install social --db-url=mysql://root:root@db:3306/social

I get the following error:
Drupal\Core\Installer\Exception\InstallerException: PHP extensions: Disabled

But there is no specification which extension is/are disabled (I already had error notices specifying which extensions were missing and I installed them previously).

If someone has an idea what may be the issue here or if you want more information, I can paste you the --debug output if that helps to debug the problem. As a sidenote I had my ubuntu reinstalled recently (currently using Ubuntu 17.04 which I believe shouldn't be a problem) also I don't seem to be able to use the interactive web based site installation so the problem might be simpler then I am making it be.

EDIT: It was just a problem of doing it from the wrong document root in my case and that is why there were no specifications of disabled extensions.

alesr’s picture

In PHP 7 (works for 7.1 and 7.2) you just need 

sudo apt install php-gd

to solve the original issue of missing gd extension.

José Vargas’s picture

When installing Drupal 7.59 with PHP 7.1 send error "PHP Extensiones off Drupal needs to have PHP extensions enabled in the flollowing list"

dom

gd

SimpleXML

xml

One of the many attempts I made to crrect this problem was:

sudo apt install php5.6