I'm installing D7 on Ubuntu 12.04. I've been following the procedure explained in this page. And this is the error I'm getting:

enter image description here

I've already made MySQL database called 'drupaldb'.

I've also checked PHP and it's installed and it's running. I'm configuring NGINX to run D7 on it.

Please help!

closed as off-topic by kiamlaluno Apr 11 '18 at 9:53

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on programming, PHP, SQL, etc. that do not relate directly to Drupal are off-topic here, but can be asked on Stack Overflow." – kiamlaluno
If this question can be reworded to fit the rules in the help center, please edit the question.

  • certainly Your problem related to your server cofiguration – Yusef Mohamadi Sep 18 '12 at 12:05

To install gd library in ubuntu:

$ sudo apt-get install php5-gd

Above command will install PHP gd library in Ubuntu.

Refer this question from Server Fault to install mysql-pdo driver in ubuntu

  • This should be the correct answer. – Lester Peabody Sep 18 '12 at 12:33
  • Whoa! Thanks that worked. After hours of scouring the web and this is the answer! shakes head – CobaltBabyBear Sep 18 '12 at 12:49

you can install LAMP server in just one command

sudo apt-get install lamp-server^

don't forget ^ after lamp-server. This will install the missing extensions and database support (LAMP was specially designed for PHP applications running on Apache server with MySQL database). After that you can place your drupal folder in /var/www/, and it should install smoothly after that.


You need to enable GD extension and PDO extension for PHP.

It might mean you need rebuild your PHP install, contact your server admin who should be able to enable those extensions easily

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