本文介绍了编辑heroku上的php.ini的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将上,并且有一个2.5MB的自定义主题,我需要上传。



我已经安装了发送我的上传直接到S3,但是,我仍然得到错误。我想我仍然需要编辑php.ini文件,特别是这些行:

 ;上传文件的最大允许大小。 
; http://php.net/upload-max-filesize
upload_max_filesize = 2M

I需要将其更改为3M。



如何编辑php.ini文件?

解决方案

Heroku仅非正式地支持php。我联系支持人员,他们不会为我改变这一点。最终,我认为这比它的价值更麻烦,因为Heroku并不打算成为一个文件写入系统 - 除非您的本地系统进行了更改并在git中进行了更改,否则您更改的任何内容都将被撤消。即使您设置了WPRO并将所有静态文件发送到Amazon s3,您也会遇到麻烦。



我对我来说更容易。

I've put wordpress up on Heroku and have a 2.5MB custom theme I need to upload.

I've installed the wpro plugin to send my uploads directly to s3, however, I still get the error. I think i still need to edit the php.ini file, specifically these lines:

; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 2M

I need to change that to 3M.

How can I edit the php.ini file??

解决方案

Heroku only unofficially supports php. I contact support and they're not going to change this for me. Ultimately I think it's more trouble than it's worth because Heroku isn't intended to be a file writing system - anything you change will be undone unless the change is made on your local system and committed in git. Even if you set up WPRO and ship all your static to Amazon s3, you'll run into trouble.

It was much easier for me to set Wordpress up on Amazon E2.

这篇关于编辑heroku上的php.ini的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 03:00