Google云启动器wordpress

Google云启动器wordpress

本文介绍了Google云启动器wordpress php.ini upload_max_filesize不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我测试了Google Cloud Launcher一键式安装程序并安装了wordpress.安装进行得很好,但是当我使用wordpress adming并尝试上载22MB的主题文件时,我收到消息:

I tested out google cloud launcher one-click-installer and installed wordpress. Installation went fine, but when I used wordpress adming and tried to upload a theme file 22MB I got the message:

上传的文件超出了php.ini中的upload_max_filesize指令.

这是经典错误消息.我成功地对php.ini文件进行了更改,以允许文件上传到200MB.保存更改并重新启动apache.我什至重新启动了实例,但没有帮助.问题仍然存在.

This is classic error message. I successfully made changes in the php.ini file to allow file uploads to 200MB. Saved changes and restarted apache. I even restarted the Instance but it didn't help. The problem were still there.

有人知道这是什么原因以及如何解决此问题吗?

Does anyone knows what is the reason for this and how to solve this issue?

推荐答案

请注意,除了 upload_max_filesize 外,您还必须增加 post_max_size .这个 post_max_size 值管理整个POST请求的大小,因此也有必要增加它.

Note that the additionally to upload_max_filesize you also have to increase the post_max_size. This post_max_size value manages the size of the whole POST request, so it is also necessary to increase it.

您可以在以下路径中找到php配置文件:

You can find the php configuration file in the following path:

/opt/bitnami/php/etc/php.ini

修改配置文件后,必须重新启动实例的 PHP-FPM 服务.您可以通过执行以下命令来做到这一点:

Once you have modified the configuration file, you have to restart the PHP-FPM service of your instance. You can do it by executing the following command:

sudo/opt/bitnami/ctlscript.sh重新启动php-fpm

希望这会有所帮助.

这篇关于Google云启动器wordpress php.ini upload_max_filesize不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 07:51