昨日当年

你一双澄澈眼眸 便使我颠沛中毕生富有

在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;
}