任何人都成功地与FCGI上的Apache2安装Laravel? [英] Anyone succeeded to Install Laravel on Apache2 with fcgi?

查看:270
本文介绍了任何人都成功地与FCGI上的Apache2安装Laravel?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经成功安装Laravel上的Apache2和PHP作为一个模块。这些指令很简单。然而,当我尝试用FCGI这是行不通的。因此,它与服务器配置做。我参观后的http://< mylaraveldomain> (域不公开),我看着/var/log/apache2/error.log和得到这个错误讯息

I have successfully installed Laravel on Apache2 with php as a module. The instructions are simple. However, when I try with fcgi it does not work. So it has to do with the server configuration. After I visited http://<mylaraveldomain> (domain not public), I looked at /var/log/apache2/error.log and got this error message

[Thu Mar 26 22:52:34.012794 2015] [fcgid:warn] [pid 30834] (104)Connection   reset by peer: [client 65.92.253.153:7785] mod_fcgid: error reading data from FastCGI server
[Thu Mar 26 22:52:34.012862 2015] [core:error] [pid 30834] [client 65.92.253.153:7785] End of script output before headers: php-fcgi-wrapper
[Thu Mar 26 22:52:39.826939 2015] [fcgid:error] [pid 30830] mod_fcgid: process /var/www/default/cgi-bin/php5-default/php-fcgi-wrapper(31115) exit(communication error), get unexpected signal 11

我也看了在/ var其他所有的日志文件/访问URL日志后,最近修改,但没有额外的有用的信息被发现。我应该看看其他地方?这并不是说FCGI不工作,因为如果我把laravel公共文件夹中的文件test.php的,我可以在URL细阅读的http://&LT; mylaraveldomain&GT; /test.php 。是否有一些特殊的配置设置,使laravel作品与FCGI?这是可能的,它是专门针对我的安装FCGI的。所以,我想知道,如果其他人成功地与Apache2的FCGI安装laravel。我在Ubuntu和我做了一个最近易于得到升级。

I also looked at all other log files in /var/log recently modified after visiting the URL, but no additional useful info was found. Should I look elsewhere? It is not that fcgi is not working, because if I put a file test.php in laravel public folder I can read it fine at the URL http://<mylaraveldomain>/test.php. Is there some special configuration settings to make laravel works with fcgi ? It is possible that it is specific to my installation of fcgi. So, I would like to know if others have succeeded to install laravel with fcgi on apache2. I am on Ubuntu and I made a recent apt-get upgrade.

推荐答案

我检查系统日志并有额外的信息。我可以看到一个段故障。我猜它可能是缓存管理问题。我注释掉文件中的行的zend_extension = opcache.so /etc/php5/apache2/conf.d/05-opcache.ini 和它的工作。当然,这是仅围绕一个工作

I checked syslog and there was additional info. I could see a segment fault. I guessed it could be cache management issue. I commented out the line zend_extension=opcache.so in the file /etc/php5/apache2/conf.d/05-opcache.ini and it worked. Of course, this is only a work around.

这篇关于任何人都成功地与FCGI上的Apache2安装Laravel?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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