找不到PDO类laravel [英] class pdo not found laravel

查看:124
本文介绍了找不到PDO类laravel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这就是问题所在,我的laravel 5.0工作正常..我基本上已经设置了域,例如dev.mydomain.com和另一个'mydomain.com'.我在dev站点中进行了所有测试. . 不久前,我创建了这个dev域.之后,实时站点开始给我一个名为Class PDO not found. FatalErrorException in ConnectionFactory.php line 179的错误,但我的开发站点运行正常. 搜索时,我发现未启用PDO extension却在同一个子域下的开发站点正常工作时会发生此类错误.我还在我的php.ini中启用了该应用程序当前正在使用的PDO extension.我应如何解决此问题.有人请帮助

So here is the issue, My laravel 5.0 was working fine.. I basically have setup to domains, one like dev.mydomain.com and another 'mydomain.com'.I do all the testing in my dev site.. Just few moment ago, I created this dev domain. After then, the live site started giving me an error called Class PDO not found. FatalErrorException in ConnectionFactory.php line 179 but my dev site is working totally fine.. On searching out, I found such errors occurs when PDO extension is not enabled but my dev site under the same subdomain is working fine. I have also enabled PDO extension in my php.ini that the application is using currently.. How should i resolve this issue. someone please help

推荐答案

奇怪我正在回答自己..如果有人遇到此问题,请确保将php.ini设置为递归.只需添加

strange I am answering myself.. If someone face this problem, make sure you set the php.ini to be recursive. Just add

suPHP_ConfigPath /home/<<username>>/public_html

public_html/.htaccess

对我有用:)

这篇关于找不到PDO类laravel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆