Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable php extensions and database support?

After spending some time in setting up a local sever in mac os, installing php5, and finally installing mysql I am still running on problems when trying to perform an drupal install.

When going to install.php the page shows the following

PHP extensions Disabled

Drupal requires you to enable the PHP extensions in the following list (see the system
requirements page for more information): gd

And;

Database support Disabled.

Your web server does not appear to support any common PDO database extensions. Check with
your hosting provider to see if they support PDO (PHP Data Objects) and offer any databases
that Drupal supports.

Any ideas on how to proceed with the installation?

More information:

php5 and php5-gd were installed via macports. mysql was installed via homebrew.

like image 587
Everton J Souto Lima Avatar asked Mar 27 '12 05:03

Everton J Souto Lima


2 Answers

You need two more packages to pass through this error message:

php5-gd and php5-mysql.

So just install it and you'll not get any error.

Note: You can replace php5-mysql to other package based on the database you are using.

For example:

php5-sqlite for sqlite
php5-pgsql for postgres
php5-adodb for ADOdb database
like image 54
Saurav Kumar Avatar answered Oct 22 '22 21:10

Saurav Kumar


I ran into this issue as well when trying to manually setup drupal, apache, mysql and php on windows, even after uncommenting extension=php_gd2.dll, extension=php_mbstring.dll and extension=php_pdo_mysql.dll from the Dynamic Extensions section

In order to fix this, I had to change the extension_dir in my php.ini to explicitly state the folder path of the extensions:

From:

extension_dir = "./ext"

To:

extension_dir = "C:/php/php-5.3.28-Win32-VC9-x86/ext"
like image 33
enducat Avatar answered Oct 22 '22 19:10

enducat