dongxia19772008 2014-09-27 00:16
浏览 42
已采纳

在openshift php应用程序中减少upload_max_filesize

I just updated upload_max_filesize to 2M and post_max_size to 4M in php.ini at /var/lib/openshift/xxx---app-id---xxx/php/configuration/etc/php.ini in my scalable PHP app and restarted the cartridge:

  $ rhc cartridge restart php -a "myapp"

And then the app

  $ rhc app restart -a "myapp"

But unfortunately, the upload size still remains the default 200 MB.

Please tell me where else to modify and what else to do to reduce maximum file upload size because 200 MB size is too large and dangerous to be public in my app.

  • 写回答

1条回答 默认 最新

  • dream6120 2014-09-30 04:58
    关注

    Have you tried adding these into your .htaccess?

    php_value upload_max_filesize 2M
    php_value post_max_size 4M
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部