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

前端 未结 9 2288
耶瑟儿~
耶瑟儿~ 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:33

    After reading great @Jekis's answer, I solved the same issue for Fedora distribution (it's the same thing, just different path):

    1. After evaluting phpinfo(); output I found out that other .ini files are stored in: /etc/php.d directory

    2. In /etc/php.d I created a new file - 40-user.ini. I added upload_max_filesize and other settings that I wanted to change

    3. Then I restarted apache (httpd)

    And then changes were picked up.

提交回复
热议问题