Skip to content

Increasing upload_max_size in php.ini with Azure Web Apps

A small puzzle for the end of last week with an Azure web app running PHP.

The default upload_max_filesize for PHP on Azure Web Apps is 8,192KB and there was a need to increase it.

I’ve done this 100s of times with PHP running on Apache – but wasn’t sure how to do it on an Azure App Service. Honestly, this little puzzle took me much longer than would I care to admit.

The information needed is right here in the documentation:

Create a .user.ini file at the root directory and add the setting required there. In this case:


And that was it…

This is the same for any PHP configurations that can be made in php.ini. For information about php.ini directives, see List of php.ini directives.

Short post today, but sometimes it’s only easy when you know how!

This post is part of my Learning out Loud series. You can read more about Learning out Loud and how it came about here:

Published inLearning Out LoudTechnologyWeb Development

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *