1

I'm trying to change the php config for upload_max_filesize on my server (LEMP Stack).

In phpinfo I can see:

Loaded Configuration File:  /etc/php/7.2/fpm/php.ini

I've changed upload_max_filesize to 256M in this file.

Then I've restarted by running this command: systemctl restart nginx.

The problem is that when I check my phpinfo it hasn't changed... .

2
  • 1
    Have you tried to restart php-fpm service as well? systemctl restart php7.2-fpm.service Commented Jun 21, 2019 at 14:14
  • Thanks, that did the trick. Commented Jun 21, 2019 at 14:15

1 Answer 1

5

You have to restart the php-fpm service for the changes to take effect:

systemctl restart php7.2-fpm.service
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.