Report this

What is the reason for this report?

Other php config not reading by heroku-php-apache2 bot

Posted on August 1, 2024
Quenoz Alvareoe

By Quenoz Alvareoe

Software Engineer

I have this .user.ini containing

memory_limit = 1G
allow_url_fopen = On
upload_max_filesize = 128M
post_max_size = 128M

and pass it on the heroku-php-apache2 command via

heroku-php-apache2 -i .user.ini public/

I can see the memory limit has been increased but these two

upload_max_filesize = 128M
post_max_size = 128M

seems were not recognized, the upload_max_filesize and post_max_size is still not changed. Any idea, help please?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

I’ve seen a similar discussion about this here.

Most users report that they managed to get this to work after adding the .user.ini file in the public directory.

Let me know if this works if you were to move the ini file there!

- Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.