简体   繁体   English

在运行Nginx的Ubuntu16上的PHP7中设置Max文件大小

[英]Set Max filesize in PHP7 on Ubuntu16 Running Nginx

I have changed the following lines in 我更改了以下几行

vi /etc/php/7.0/cli/php.ini

upload_max_filesize = 24M
post_max_size = 32M

I run 我跑

service nginx restart
and
systemctl restart php7.0-fpm.service

but it does not seem to update in my phpinfo - it still says 2M. 但我的phpinfo中似乎没有更新-它仍然显示2M。

It's the wrong .ini 这是错误的.ini

vi /etc/php/7.0/fpm/php.ini

this works. 这可行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM