Search code examples
phpazureini

Azure .user.ini not working


As the azure website states, to configure PHP I should add a .user.ini file to the root.

http://azure.microsoft.com/en-gb/documentation/articles/web-sites-php-configure/#ChangeBuiltInPHP

The issue is when I do this, none of my php ini values seem to change. I'm pretty sure my ini file is correct?

upload_max_filesize=128M
post_max_size=128M

When I upload the file and restart the website, I check php_info() and the values are still set to the default.

Am I doing something wrong?


Solution

  • I figured out my issue.

    I created the first .user.ini file within FileZilla which for some reason azure didn't recognise. I then just created a user.ini file and renamed it to .user.ini within command prompt

    ren user.ini .user.ini
    

    and that file was recognised by azure.