简体   繁体   English

Azure 上的 Wordpress - 如何更改文件上传限制

[英]Wordpress on Azure - How to change file upload limits

I'm trying to edit the WordPress upload limits for my site to at least 2GB for a migration我正在尝试将我网站的 WordPress 上传限制编辑为至少 2GB 以进行迁移

I'm using WordPress on Azure (Linux), which uses this container under the hood: appsvc/wordpress-alpine-php:latest我在 Azure (Linux) 上使用 WordPress,它在后台使用这个容器:appsvc/wordpress-alpine-php:latest

I've tried the methods online such as editing the .htaccess file, please see a snippet from the top of mine below我已经尝试过在线方法,例如编辑 .htaccess 文件,请参阅下面我顶部的片段

php_value upload_max_filesize 4096M
php_value post_max_size 4096M
php_value memory_limit 4096M
php_value max_execution_time 3000
php_value max_input_time 3000
# BEGIN W3TC Browser Cache
<IfModule mod_mime.c>
    AddType text/css .css
    AddType text/x-component .htc
    AddType application/x-javascript .js
    AddType application/javascript .js2
 ... etc etc

Unfortunately this method hasn't worked - has anyone come across this or have any suggestions?不幸的是,这种方法没有奏效——有人遇到过这个或有什么建议吗?

Many thanks非常感谢

For App Service Linux, Suggest you these steps at Updating PHP Settings对于应用服务 Linux,建议您在更新 PHP 设置中执行这些步骤

NOTE: For WordPress Multisite users, you will also need to modify the Network Admin Settings to increase the value.注意:对于 WordPress 多站点用户,您还需要修改网络管理员设置以增加该值。

  1. Select Network Admin -> Settings选择网络管理员 -> 设置

在此处输入图像描述

  1. Scroll down to the “Upload Setting” section and modify the “Max upload file size” then press “Save Changes”.向下滚动到“上传设置”部分并修改“最大上传文件大小”,然后按“保存更改”。

在此处输入图像描述

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

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