红联Linux门户
Linux帮助

centos重启网站服务器httpd

发布时间:2015-12-04 15:47:52来源:linux网站作者:chuanyu

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

然后查看日志: /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,


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


[root@iZ231y696qeZ /]# service httpd restart

Redirecting to /bin/systemctl restart  httpd.service

[root@iZ231y696qeZ /]#


便能正常访问了。


CentOS配置httpd使局域网可以正常访问:http://www.linuxdiyf.com/linux/15507.html

Linux下安装Httpd Web服务器:http://www.linuxdiyf.com/linux/14831.html

Linux(RHEL5)安装httpd服务器(配置篇):http://www.linuxdiyf.com/linux/10934.html

Linux(RHEL5)安装httpd服务器(理论篇):http://www.linuxdiyf.com/linux/10933.html

CentOS 6.4源码编译安装httpd并启动测试:http://www.linuxdiyf.com/linux/10854.html