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



33.1k

What is use OS ?



1.1k

centos 6.5 php5.5.18

What is use OS ?



33.1k

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.1k

Ok,You can clear it before compile, for example

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



4.2k

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.



82.7k

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