1. Installed apache, php, php-fpm, mysql-client / server, current versions.

  2. Uncommented the line in php.ini

    extension = php_pdo_mysql.dll

As a result, an error appeared on the site:

Fatal error: Uncaught Error: Class 'PDO' not found in 

Can some mini guide how to put pdo mysql on ubuntu 16.10?

  • You can try restartanut and pkhp and apache - Alexey Shimansky
  • service apache2 restart, apache restart, how php reboot? - Vova
  • It would certainly be interesting to know exactly how everything was installed - Alexey Shimansky
  • apt-get install apache2 libapache2-mod-fastcghi php.7.0 php7.0-fpm mysql-client-5.7 mysql-server-5.7 And in Apache's configs I cracked php through a regular - Vova

1 answer 1

 sudo apt-get install php-mysql (ΠΈΠ»ΠΈ php7.0-mysql) sudo service apache2 restart (ΠΈΠ»ΠΈ sudo service php7.0-fpm restart для nginx/php-fpm 7.0 ΠΌΠΎΠΆΠ΅Ρ‚ ΠΈ Π½Π΅ Π½ΡƒΠΆΠ½ΠΎ) 

Configuration files do not need to be edited!

  • E: Could not find the pdo-mysql package - Vova
  • sudo apt-get update - L. Vadim
  • then again - L. Vadim
  • I tried, also an error - Vova
  • reinstall again: sudo apt-get install php-mysql - L. Vadim