eriktorsner / wp-checksum

wp-cli subcommand to verify checksums for themes and plugins
MIT License
43 stars 4 forks source link

PHP Fatal error on RunCloud-powered server #10

Open jfarsen opened 6 years ago

jfarsen commented 6 years ago

I've followed the instructions to install WP-CLI to the letter on a RunCloud-powered server, built on Ubuntu 16, and configured to use PHP 7.1.

When trying to install your package (running the command from a wp installation, as a non-root user), I get the following error :

Updating dependencies
PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 18874368 bytes) in phar:///usr/local/bin/wp/vendor/composer/composer/src/Composer/DependencyResolver/RuleSet.php on line 90

This is on a server with 2 cores and 4 GB RAM ... ?

eriktorsner commented 6 years ago

Hi,

Sorry for the late reply.

This looks like an issue with how PHP uses memory rather than the wp-cli package installer. Check the php.ini file for php-cli and see what the memory limit is set to.