I am trying to setup webserver with
PHP 7 RC3
+Nginx
onUbuntu 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 seesPDO
class but not anything related to MySQL, likePDO::MYSQL_ATTR_DIRECT_QUERY
etc.)Looks like there is no lib
php7.0-mysql
(by analogy with standardphp5-mysqlnd
andphp7.0-fpm
etc. from Ondřej)Section
PDO
inphpinfo()
:
How can I get it?
For thoses running Linux with apache2 you need to install php-mysql
or if you are running ubuntu 16.04 or higher just running the following command will be enought, no need to edit your php.ini file
If you are running ubuntu 15.10 or below:
Edit your php.ini file, it’s located at /etc/php/[version]/apache2/php.ini
and search for pdo_mysql you might found something like this
Change it to this
Save the file and restart apache
Check that it’s available in your phpinfo()