I am trying to setup webserver with PHP 7 RC3 + Nginx on Ubuntu 14.04 (for test purposes).
I installed Ubuntu in Vagrant using ubuntu/trusty64 and PHP 7 RC 3 from Ondřej Surý (https://launchpad.net/~ondrej/+archive/ubuntu/php-7.0).
I can not find the way to install MySQL PDO (PHP sees PDO class but not anything related to MySQL, like PDO::MYSQL_ATTR_DIRECT_QUERY etc.)
Looks like there is no lib php7.0-mysql (by analogy with standard php5-mysqlnd and php7.0-fpm etc. from Ondřej)
Section PDO in phpinfo():
PDO support enabled
PDO drivers no value
How can I get it?
ubuntu/trusty64which is 14.04. Assuming that you are in fact using Trusty (after all, Ondřej hasn't produced packages for Precise) then hisphp-modulespackage will providephp-mysql. – eggyal Sep 23 '15 at 0:00apt-cache search php pdoand modulephp-mysqlin this case is not shown. – SmxCde Sep 23 '15 at 0:13php5-mysqlndto use the mysql native driver, which according to that link is "strongly encouraged", even if the Ubuntu devs don't use it by default. – Mike Sep 23 '15 at 1:10php5-mysqlnddoes not work for me cause I installPHP 7. – Pavel Sep 23 '15 at 3:28