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.


When I use

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

PHP compiles.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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