centos 重启网站服务器 httpd


遇到问题:网站页面打不开

然后查看日志:   /var/log/httpd/error_log  发下以下内容:

Wed Jul 15 22:36:34.887707 2015] [:error] [pid 30597] [client 115.205.239.84:29915] PHP Notice:  Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /var/www/goodbyedealer/config/app.php on line 83

[Wed Jul 15 22:36:34.893633 2015] [:error] [pid 30597] [client 115.205.239.84:29915] PHP Fatal error:  Call to undefined function Illuminate\\Encryption\\mcrypt_get_iv_size() in /var/www/goodbyedealer/vendor/compiled.php on line 11911


查看相应app.php代码:

        'key' => env('APP_KEY', 'SomeRandomString'),


        'cipher' => MCRYPT_RIJNDAEL_128,



经百度查找,可能是网站服务器需要重启,然后重启

参考:http://www.cnblogs.com/firesnow/archive/2013/04/11/3014560.html



[root@iZ231y696qeZ /]# service httpd restart

Redirecting to /bin/systemctl restart  httpd.service

[root@iZ231y696qeZ /]# 



便能正常访问了


你可能感兴趣的:(服务器,linux,工具类)