这个问题不是类似问题的重复,因为我已经安装了PHP PDO扩展。
我必须将一个Laravel 5.4项目迁移到Linux Red Hat 7.4,该项目现在位于Windows/IIS上,带有Microsoft SQL数据库
我已经运行了:Apache httpd24,安装了php 7.1(rh-php71包),并安装了PDO、PDFO\U ODBC扩展。PHP正在PHP fpm模式下工作。
在首次访问SQL数据库(登录时:)之前,一切正常
当我收到此错误时:
Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN)
Class 'PDO' not found
经过3天的工作和学习,是否有其他解决方案,然后将数据库迁移到Maria或MySQL?!
稍后编辑:我添加了php。ini:
extension=pdo.so
现在新的错误是:
Illuminate \ Database \ QueryException
could not find driver (SQL: select top 1 * from [users]
where [email] = radu.cruceana@tiriacleasing.ro)
非常感谢。