ubuntu内nginx架设php
php运行提示错误:
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: /usr/lib/php/20170718/pdo_mysql (/usr/lib/php/20170718/pdo_mysql: cannot open shared object file: No such file or directory), /usr/lib/php/20170718/pdo_mysql.so (/usr/lib/php/20170718/pdo_mysql.so: undefined symbol: pdo_parse_params)) in Unknown on line 0
sudo apt-get --purge remove php-common sudo apt-get install php-common php-mysql php-cli php-fpm
重启php-fpm
sudo service php[版本号]-fpm restart