Now I use the command below to configure php: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=mysqlnd --with-mysql=/usr/local/mysql/bin/mysql_config --with-mysqli=mysqlnd --with-pdo-mysql=myslqnd And the error happened: configure: error: Cannot find MySQL header files under /usr/local/mysql/bin/mysql_config. -- 黄昭源(Asher Wong) *Best Wishes To You!*