NC claims php memory_limit is 256M but it's acutally 512M

$ uname -a

Linux fir 4.18.0-553.87.1.el8_10.x86_64 #1 SMP Tue Nov 25 00:57:14 EST 2025 x86_64 x86_64 x86_64 GNU/Linux

$ httpd -v
Server version: Apache/2.4.37 (Red Hat Enterprise Linux)

$ php -v
PHP 8.0.30 (cli) (built: Jul 3 2025 08:09:34) ( NTS gcc x86_64 )

$ php -i | grep memory_limit

memory_limit => 512M => 512

php -i only applies to the CLI SAPI.

However, your web server interacts with either the FPM SAPI or via a module in Apache (libapache2-mod-php) with your PHP installation.

The relevant php-ini file is either the one for php-fpm or for apache2, not the one for php-cli, which you query with php -i.


ernolf

1 Like