简体   繁体   中英

“Fatal error: Allowed memory size of” error on RedHat/Centos 7.5 when I install Drupal

I installed a LEMP stack on a Centos 7.5 to run a Drupal application.

PHP version needed is 7.2, installed using epel/remi repositories.

When all is done, and the application is correctly deployed, I get a "Fatal error: Allowed memory size of XX bytes exhausted (tried to allocate XXX bytes) in bla/bla/bla.php"

It seems to be a memory_limit issue, but it cannot be: PHP memory limit is set to 512M and the application runs correctly in any other environments (based on Debian). I tried also to reproduce this issue re-creating the stack on a centos:centos7.5 docker image, and all works well.

I think this could be a RedHat/Centos issue, maybe some OS parameters. Consider that I've also disabled Selinux.

Any idea?

Thx Daniele

如果您使用centos 7作为服务器,而php是7.2, /usr/local/php72/lib root /usr/local/php72/lib转到/usr/local/php72/lib来查找drupal 8的memory_limit ,则需要将memory_limit设置为至少2048M

memory_limit = 2048M

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM