Tabrez Ahmed Tabrez Ahmed - 1 year ago 125
Ini Question

Reducing upload_max_filesize in openshift php app

I just updated

to 2M and
to 4M in php.ini at
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.

Answer Source

Have you tried adding these into your .htaccess?

php_value upload_max_filesize 2M
php_value post_max_size 4M
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download