设置PHP的蛋糕后,会议权限被拒绝在AWS上。被拒、蛋糕、权限、会议

2023-09-11 11:24:03 作者:︶ㄣ拽、爷ㄜ︵

使用指南和一切除了以下警告完全是工作。

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.