Out of memory error in symfony

前端 未结 6 1865
心在旅途
心在旅途 2020-12-10 12:18

I\'m currently working on Symfony project (const VERSION =\'2.5.10\') and I am using xampp. PHP version is 5.5.19.

My problem is everytime I run my dev environment I

6条回答
  •  再見小時候
    2020-12-10 12:50

    Even late to the party, recently I had problems about Out of Memory just accessing app.php file with Symfony 3.4. Turns out that when you have SELinux set to enforcing, even if you set the permissions of var directory inside your project to 777, it won't be able to write on it. If you follow the steps in the official documentation about how deploy in production, it will return a response code 500 and write in web server's error log only that PHP has exhausted the memory limit.

    I'm no expert in SELinux, but the only way I could solve this problem was disabling SELinux, but edition /etc/selinux/config file setting SELINUX=disabled and restarting the OS.

    Again, there's reason to SELinux exists and proper configuration isn't found easily using Symfony's var sub-folders and can get hard to solve this problem without thinking of disabling SELinux.

提交回复
热议问题