Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to use Nginx with PHP5-FPM with MySQL PDO on Debian. To get PHP5-FPM on squeeze I need to compile PHP myself. First I tried to

I did:

apt-get install mysql-server libmysqlclient-dev

I downloaded PHP 5.3.6. Then I configured PHP like this:

./configure \
--enable-fpm \
--enable-soap \
--enable-calendar \
--enable-ftp \
--enable-libxml \
--enable-mbstring \
--enable-sockets \
--enable-zend-multibyte \
--enable-zip \
--with-openssl \
--with-zlib \
--with-mcrypt \
--enable-pdo --with-pdo-mysql \

The make process quits with this error:

/php-5.3.6/ext/pdo_mysql/mysql_statement.c:76: error: "pdo_mysql_stmt" has no member named "in_length"

What am I doing wrong? Should I use package libmysqlclient-dev? I want maximum performance.

share|improve this question
up vote 0 down vote accepted

When I use

--enable-pdo --with-mysql=mysqlnd --with-pdo-mysql=mysqlnd

PHP compiles.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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