Skip to content
Advertisement

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.

Advertisement

Answer

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
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement