Hi Eva, I try to add wordpress nginx vhost through menu 22, and then i find an error. This is the first time i encounter this kind of error. What could possibly wrong? " Code: -------------------------------------------------------- Enter option [ 1 - 24 ] 22 -------------------------------------------------------- ------------------------------------------------------------ Update wp-cli tool ------------------------------------------------------------ updating... ------------------------------------------------------------- install wp-cli https://github.com/eriktorsner/wp-checksum Installing package eriktorsner/wp-checksum (dev-master) Updating /root/.wp-cli/packages/composer.json to require the package... Using Composer to install the package... --- Loading composer repositories with package information Updating dependencies PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 16777216 bytes) in phar:///usr/bin/wp/vendor/composer/composer/src/Composer/DependencyResolver/RuleSetGenerator.php on line 126 ------------------------------------------------------------- install wp-cli https://github.com/markri/wp-sec Installing package markri/wp-sec (dev-master) Updating /root/.wp-cli/packages/composer.json to require the package... Using Composer to install the package... --- Loading composer repositories with package information Updating dependencies PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 16777216 bytes) in phar:///usr/bin/wp/vendor/composer/composer/src/Composer/DependencyResolver/RuleSetGenerator.php on line 126 ------------------------------------------------------------- update wp-cli packages Using Composer to update packages... --- Loading composer repositories with package information Updating dependencies PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 16777216 bytes) in phar:///usr/bin/wp/vendor/composer/composer/src/Composer/DependencyResolver/RuleSetGenerator.php on line 126 ------------------------------------------------------------- Please fill in any relevant information that applies to you: CentOS Version: CentOS 7 64bit Centmin Mod Version Installed: 123.09beta01 Nginx Version Installed: 1.13.1 PHP Version Installed: 5.6.30 MariaDB MySQL Version Installed: 10.1.23 When was last time updated Centmin Mod code base ? : today Persistent Config: Code: NGXDYNAMIC_NGXPAGESPEED='y' NGINX_PAGESPEED='y'
Manage to resolved the error by increasing the memory limit Check current PHP memory limit by using this command: Code: php -r "echo ini_get('memory_limit').PHP_EOL;" Change it to more higher number, in my case, i increase memory_limit from 256 to 1G. Add it on custom php.ini Code: nano /etc/centminmod/php.d/a_customphp.ini And then restart the PHPFPM Code: fpmrestart Its all good now.
For custom php settings read centminmod.com/phpfpm.html#customphpini. You might want to create /etc/centminmod/php.d/b_customphp.ini to override centmin mod defaults at /etc/centminmod/php.d/a_customphp.ini and restart PHP-FPM. Also outlined in Getting Started Guide Step 17