分类
使用笔记

在nginx配置文件中修改php最大上传值

fastcgi_param  PHP_VALUE "upload_max_filesize=100M \n post_max_size=100M";

添加在 location ~ .php$ 块中

location ~ \.php$ {
        #fastcgi_pass unix:/var/run/php/php8.0-fpm.sock;
        fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param  PHP_VALUE "upload_max_filesize=100M \n post_max_size=100M";
        include        fastcgi_params;
}

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注