PHP - Fatal error: Allowed memory size of bytes exhausted [Resolvido]
Dica publicada em Linux / Internet
PHP - Fatal error: Allowed memory size of bytes exhausted [Resolvido]
Fui modificar meu php.ini para usar mais memória nele, quando fiz a mudança da linha:
E reiniciei o Apache:
# apachectl restart
Me deparei com o seguinte erro:
Vi que ele "falava" de bytes e não de MB, então, fiz a conversão de Megabytes para Bytes.
E resolvi testar com a seguinte linha:
Reiniciei o Apache novamente:
# apachectl restart
E funcionou novamente meu PHP.
É isso aí, galera.
memory_limit = 128MBPara:
memory_limit = 256MB
E reiniciei o Apache:
# apachectl restart
Me deparei com o seguinte erro:
"PHP Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 6456 bytes)"
Vi que ele "falava" de bytes e não de MB, então, fiz a conversão de Megabytes para Bytes.
E resolvi testar com a seguinte linha:
memory_limit = 268435456
Reiniciei o Apache novamente:
# apachectl restart
E funcionou novamente meu PHP.
É isso aí, galera.