设置PHP的蛋糕后,会议权限被拒绝在AWS上。 [英] Session Permission Denied on AWS after setting up Cake php.

查看:138
本文介绍了设置PHP的蛋糕后,会议权限被拒绝在AWS上。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用指南<设置CakePHP的使用弹性魔豆AWS后/一>和一切除了以下警告完全是工作。

After setting up cakephp on aws using elastic beanstalk using the guide and everything was worked perfectly except for the following warning.

警告(2):在session_start():打开(/var/lib/php/5.5/session/sess_5keql5k987qets4sni1ji44fj3,O_RDWR)失败:权限被拒绝(13)[核心/蛋糕/型号/数据源/ CakeSession.php,行628]

Warning (2): session_start(): open(/var/lib/php/5.5/session/sess_5keql5k987qets4sni1ji44fj3, O_RDWR) failed: Permission denied (13) [CORE/Cake/Model/Datasource/CakeSession.php, line 628]

我不明白我做了什么错。如果你曾经使用过的CakePHP在AWS上,请还提到,如果有,我可能面临以后,或者我应该切换到另一个托管的网站更多的问题。谢谢你。

I don't understand what I've done wrong. If you've ever used cakephp on aws, please also mention if there are more problems that I might face later on or if I should switch to another hosting site. Thanks.

推荐答案

虽然别人的答案非常清楚了,并会的工作,我需要的是简单得多。我想修改PHP配置文件,我发现在AWS上的论坛这些答复 - 尤其是一个由alvarolb 回答完美我的问题。

Although the others answers make perfect sense and would work, my need was much simpler. I wanted to modify php configuration files and I found that these replies on aws's forum - especially the one by alvarolb answered my question perfectly.

他发现/etc/httpd/conf.d/php.conf包含被重写php_value session.save_path的到的/ var / lib中/ PHP /会话线路配置。一个简单的注释该行并会很好地工作。

He found that the configuration /etc/httpd/conf.d/php.conf contained a line that was overriding the php_value session.save_path to "/var/lib/php/session". A simple comment to that line and sessions work perfectly.

这篇关于设置PHP的蛋糕后,会议权限被拒绝在AWS上。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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