PHP 7 RC3: How to install missing MySQL PDO

后端 未结 12 901
暗喜
暗喜 2020-12-04 11:54

I am trying to setup webserver with PHP 7 RC3 + Nginx on Ubuntu 14.04 (for test purposes).

I installed Ubuntu in Vagrant using

12条回答
  •  青春惊慌失措
    2020-12-04 12:37

    First, check if your php.ini has the extension enabled "php_pdo_mysql" and "php_mysqli" and the path of "extension_dir" is correct. If you need one of above configuration, then, you must restart the php-fpm to apply the changes.

    In my case (where i am using the Windows OS in the company, i really prefer OSX or Linux), i solved the problem putting this values in the php.ini:

    ; ...
    
    extension_dir = "ext"
    
    ; ... 
    
    extension=php_mysqli.dll
    extension=php_pdo_mysql.dll
    
    ; ...
    

    I hope this helps.

提交回复
热议问题