PHP和MySQL不在同一台服务器,PHP应该如何安装。
如果按“./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs --enable-track-"
这样过不去,因为PHP这台机子上没装Mysql,
报:”configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!“
如果这个机子上装了MySQL的话,"--with-mysql=/usr/local/mysql",这样安装完后,PHP的访问指向在本机的MySQL,不能访问远程的MySQL服务器。
还是报:
checking for MySQL UNIX socket location... no
configure: error: Cannot find libmysqlclient under /usr/local/mysql.
Note that the MySQL client library is not bundled anymore!