We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

2.0.0 installation error PHP Fatal error: Allowed memory size of 134217728 bytes exhausted

Helloļ¼ 2.0.0 install the following error, I should be how to solve?

Warning: Class "APCIterator" does not exist at compile time in /data/zip/phalcon/cphalcon/phalcon/cache/backend/apc.zep on 224 [nonexistent-class]

       apc = new \APCIterator("user", prefixPattern);
    ------------------------------------------------^

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 130968 bytes) in /data/zip/phalcon/zephir/Library/Operators/Arithmetical/ArithmeticalBaseOperator.php on line 496

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 130968 bytes) in /data/zip/phalcon/zephir/Library/Operators/Arithmetical/ArithmeticalBaseOperator.php on line 496



58.4k

What is use OS ?



1.6k

centos 6.5 php5.5.18

What is use OS ?



58.4k

Ok,You can clear it before compile, for example

zephir fullclean
zephir compile
cd ext && make clean
phpize && make
make test&& sudo make install


1.6k

Ok,You can clear it before compile, for example

zephir fullclean
zephir compile
cd ext && make clean
phpize && make
make test&& sudo make install


6.6k

I had a similar error, too. Do the following: Install the ACPu PHP extension. In the ini file for the extension ACPu add apc.enable_cli=On and apc.enabled=On for executing PHP with CLI and e.g. Apache.



98.9k

You need to increase the memory limit in the php.ini

Check what is the loaded php.ini

php -i | grep Loaded

Then change the following setting

memory_limit=512M