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'm likely not thinking of some information that may be relevant, but here's pretty much what I've been trying to sort out.

I (unfortunately) am in charge of a server infested with cPanel. For various reasons I've been attempting to get the mysqlnd driver compiled into PHP. The current setup on the server is WHM/cPanel, Apache 2.2, PHP 5.4, and MySQL 5.1 on centos 5.8 x64.

As I understand it I should be able to do this through EasyApache. At least according to this:

However trying to add the extra flags for PHP results in these complaints.

./configure: line 61087: test: mysqlnd: binary operator expected
./configure: line 61091: test: mysqlnd: binary operator expected
configure: error: Cannot find MySQL header files under mysqlnd .
Note that the MySQL client library is not bundled anymore!

The options I tried to use are:


I get the feeling I'm overlooking something fairly obvious. If the most sane solution is to dodge EasyApache I don't really have a problem with that.


locked by HopelessN00b Mar 11 '15 at 20:04

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

closed as off-topic by HopelessN00b Mar 11 '15 at 20:04

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 0 down vote accepted

I think --with-mysqli is sufficient to build PHP with mysqlnd. The error message seems to suggest that the MySQL client library is not bundled, so you need to install it, both binary and header files. If the MySQL client library is installed but the configure script can't find it pass the path to the headers and library to the configure script.

Thanks. Turned out it was indeed just a matter of --with-mysqli. – isoheptane Aug 11 '12 at 5:41

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