douxie2007 2019-06-21 14:06
浏览 201
已采纳

PHP upload_max_filesize不会改变

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... .

  • 写回答

1条回答 默认 最新

  • dsfs587465 2019-06-21 14:17
    关注

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

    systemctl restart php7.2-fpm.service
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?