天天看点

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 49 bytes)

[[email protected] ~]# sh /qeedoodb/cron/refreshUserUnion.sh

PHP Notice:  Constant FILE_BASE already defined in /var/www/html/amfphp/services/system/Connect.php on line 2

PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 49 bytes) in /var/www/html/amfphp/services/refresh/RefreshUserUnion.php on line 196

cat /etc/php.ini

memory_limit = 128M      ; Maximum amount of memory a script may consume (128MB)

解决方法:

vi /etc/php.ini

memory_limit = 256M      ;

之后重启: service httpd restart

转载于:https://blog.51cto.com/holy2010/376228