Updating PHP memory limits with Nginx

I needed to update the PHP memory limits.

Running phpinfo() showed that the php.ini file was in /etc/php.ini so I updated the file and restarted nginx

Nothing happened, the memory limit remained the same.

I found that I need to restart the php-fpm service to get it to update

service php-fpm restart

It’s also worth reading this article for more details