500 internal server Symfony on production, possibly due to PHPsuexec

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 06:29:40

My guesses would be:

  1. Check if you have enabled mod_rewrite and your htaccess file (strong chances to be it)
  2. Change the no_script to true in your production environment ($sf_root/apps/app_name/config/settings.yml) , clear cache and try again
  3. Try using the php symfony proj:perm on your project after trying everything else.

Hope this helps

PHPsuexec servers do not allow directory permissions to be 'looser' than 0755 and file permissions cannot be 'looser' than 0644. Check the permissions set on all the dirs and files in the symfony installation, and modify to meet this requirement.

Next, symfony has permissions of 0777 & 0666 hard-coded into its files. You must change these permissions in symfony's code so that symfony does not make the permissions 'too loose' on dirs and files in the future.

Please read this documentation: http://trac.symfony-project.org/wiki/SymfonyPHPsuexec

Long discussion here: http://oldforum.symfony-project.org/index.php/m/45845/index.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!