Heim  >  Artikel  >  Backend-Entwicklung  >  lavarel php aritisan migrate报错

lavarel php aritisan migrate报错

WBOY
WBOYOriginal
2016-06-06 20:28:061193Durchsuche

<code>PHP Notice:  Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /var/www/billstatistics/config/app.php on line 83

Notice: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /var/www/billstatistics/config/app.php on line 83


                         
  [PDOException]         
  could not find driver  
                    
                    
                    </code>

local.ERROR: exception 'PDOException' with message 'could not find driver'

什么原因,我看了php扩展有pdo_mysql

回复内容:

<code>PHP Notice:  Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /var/www/billstatistics/config/app.php on line 83

Notice: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /var/www/billstatistics/config/app.php on line 83


                         
  [PDOException]         
  could not find driver  
                    
                    
                    </code>

local.ERROR: exception 'PDOException' with message 'could not find driver'

什么原因,我看了php扩展有pdo_mysql

这样报错90%是没有正确加载pdo啊,不用怀疑系统给你的报错。

注:命令行和服务器的php扩展加载是不一样的

第二,敢问题主用的laravel版本是?

第三,貌似你的laravel还需要MCRYPT的支持?

以后有什么laravel相关的问题,可以到这里laravist来交流一下,我会尽力帮你解决

<code class="php">sudo apt-get install php5-mcrypt
sudo php5enmod mcrypt

//php.ini
extension=mcrypt.so

sudo service apache2 restart</code>
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn