Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 \
--with-gd

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

1 Answer 1

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

 
discard

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.