Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ElectricPutty's avatar

PHP config setting getting 'overridden' on Laravel Forge

Hi - I have set up a new site on Digital Ocean using Laravel Forge - this is running php 7.3.

I need to be able to upload large files so I followed all the advice about updating 'memory_limit', 'post_max_size' and 'upload_max_filesize' in the php config and setting client_max_body_size in the nginx.config

When I dump phpInto() I can see the 'Master Value' for these reflect what is in the config, but the 'Local Value' is different. In the case of upload_max_filesize I set this to 45M but the local value is 20M, so I can't upload anything bigger than this.

Can anyone suggest where the local values are coming from. There is nothing I can see in the nginx.config and I have no ini_set() in my code.

Many thanks, Malcolm

0 likes
1 reply
squibby's avatar

Have you set the php ini values for php-fpm or the cli? There are 2 config files where you can specify php configuration. It could be that you have updated the cli and not fpm.

Please or to participate in this conversation.