获取此错误:致命错误:未find类“PDO”
在php.ini中有这些行:
extension=pdo.so extension=pdo_sqlite.so extension=sqlite.so extension=pdo_mysql.so
这显示在php.info() – –enable-pdo = shared''
有权访问,但没有“软件”选项卡,从中访问easyapatche? 有什么build议么??
假设extension_dir是正确的,你发布的内容是正确的。 这听起来像PDO扩展没有在您的服务器上编译。 PDO需要在easyapache中启用,听起来像你的经销商帐户不能访问easyapache。 因此,您需要让服务器pipe理员在easyapache中进行以下更改。
Goto WHM »Software »EasyApache (Apache Update) Select "Previously Saved Config (** DEFAULT **)" and click "Start customizing based on profile" On the "Apache Version" page click "Next" On the "PHP Version" page click "Next" On the "Short Options List" page click"Exhaustive Options List" On the "Exhaustive Options List" ensure that PDO, PDO sqlite and PDO MySQL are selected. Then Click Build on the bottom of the page.
一旦easyapache完成你应该有PDO 🙂