Changes to upload_max_filesize in Ubuntu php.ini will not take effect

前端 未结 9 2330
耶瑟儿~
耶瑟儿~ 2020-12-05 04:54

I have been trying for two days to increase the max filesize for file uploads via php to 10M from the default 2M. I change the php.ini file that is referenced by phpinfo to

9条回答
  •  天涯浪人
    2020-12-05 05:34

    If you php.ini resides somewhere like /etc/php/7.*/fpm/php.ini - then modify it as needed and instead of sudo service apache2 restart go with service php7.1-fpm restart

提交回复
热议问题