Guus Bosman

software engineering director


You are here

internet

Drupal 7 on OpenBSD: PDO extension required

I installed the second beta release of Drupal 7 on my OpenBSD server. Over-all, the beta looks very solid. This morning I spent some time testing and porting modules from version 6 to 7.

One thing I ran into is that Drupal 7 now requires PDO extension to be installed on your server. During the installation I saw this error message (I'm running OpenBSD 4.5):

"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."

Here are the steps I took to install these PDO database extensions on my OpenBSD server:

As root, run this:

pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.5/packages/i386/php5-pdo_mysql-5.2.8.tgz

To complete the installation add the following two extension to your php.ini (for me, /var/www/conf/php.ini).

extension=pdo.so
extension=pdo_mysql.so

Restart Apache and you're good to go.

Comments

Thank's so much!!!! I was useful

Thanks, but now in OpenBSD 5.4 as root, run this:

#pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/5.4/packages/amd64/php-pdo_mysql-5.3.2...
#ln -sf /etc/php-5.3.sample/pdo_mysql.ini /etc/php-5.3/pdo_mysql.ini

Restart web server and you’re good to go.!

Recent comments

Recently read

Books I've recently read: