環境:centos8
報錯是因爲缺少mysql擴展
解決辦法:
yum install php-mysql
yum install mysql-devel
若爲PHP5.3 就只能源碼安裝,參考如下
進入源碼解壓包
./configure --with-php-config=/usr/local/php53/bin/php-config --with-mysql
./configure --with-php-config=/usr/local/php53/bin/php-config --with-mysql=/usr
./configure --with-php-config=/usr/local/php53/bin/php-config --with-mysql=mysqlnd