增加Google Cloud Platform Kubernetes Wordpress点击部署上的PHP.ini文件上传限制

苏珊·比斯瓦斯(Sushen Biswas)

我部署一键式Wordpress Kubernetes应用程序。现在,我要上传Gravity-From插件。但这给了我错误:

The uploaded file exceeds the upload_max_filesize directive in php.ini

我将如何增加PHP.ini文件的站点,以便可以上传插件。

注意:Github存储库:https : //github.com/GoogleCloudPlatform/click-to-deploy

屏幕截图的错误: 在此处输入图片说明

应用程序截图:在此处输入图片说明

苏珊·比斯瓦斯(Sushen Biswas)

您可以选择4种方法来增加WordPress中最大上传文件的大小。

1.更新.htaccess文件

php_value upload_max_filesize 128M

php_value post_max_size 128M

php_value memory_limit 256M 

php_value max_execution_time 300

php_value max_input_time 300

2.更新wp-config.php文件

@ini_set( 'upload_max_filesize' , '128M' );

@ini_set( 'post_max_size', '128M');

@ini_set( 'memory_limit', '256M' );

@ini_set( 'max_execution_time', '300' );

@ini_set( 'max_input_time', '300' );

如果您需要更多学习,请关注该帖子。

https://help.servmask.com/2018/10/27/how-to-increase-maximum-upload-file-size-in-wordpress/

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

限制对Google Cloud Platform上的kubernetes集群的访问

如何在Google Cloud Platform的Kubernetes Engine上添加资源和限制

如何使用Kubernetes和Gitlab CI / CD在Google Cloud Platform中部署登台?

将C ++应用程序部署到Google Cloud Platform Kubernetes引擎

极高的负载平衡成本,以在Google Cloud Platform上最少地设置Kubernetes Engine

在Google Cloud Platform上不允许使用Django,Kubernetes和负载均衡器的主机

Google Cloud Platform文件位置

限制 Google Cloud Platform Compute 上的实例大小

kubernetes健康检查作业进入Google Cloud Platform

Google Cloud Platform-备份上传

Google Cloud上的kubernetes petset

在 Google Cloud Platform 上部署 Vue Build

在创建后标记 Google Cloud Platform 部署

如何增加Google Cloud Platform中的后端服务配额?

更改Google Cloud Platform上的GPU配额

Google Cloud Platform上的SSL证书

如何在 Google Cloud Platform 上安装 Wordpress 4.9

Kubernetes Pods与Google Cloud中的部署

Google 的 Anthos with Kubernetes 可以做什么以及它如何适应 Google Cloud Platform?

WordPress安装在Google Cloud Kubernetes群集上的位置

使用hostPath挂载的Google Cloud上的Kubernetes

使用哪个令牌在Google Cloud Platform上进行kubernetes-dashboard登录

在Google Cloud Platform上将HTTP负载均衡器与Kubernetes结合使用

通过Kubernetes / Ingress和Google Cloud Platform运行HTTPS SSE服务器

如何在 Google Cloud Platform 中访问 Kubernetes 节点的内部 HTTP 端口

适用于Google Cloud Platform的弹性上传器

启动计算引擎时,将文件保存在Google Cloud Platform上的启动脚本中

无法在Google Cloud Platform上创建Dataproc集群“ NodeInitializationAction必须指定可执行文件”

使用Google Cloud Platform部署React应用程序