Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure .user.ini not working

Tags:

php

ini

azure

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?

like image 587
Emobe Avatar asked Nov 24 '14 19:11

Emobe


2 Answers

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.

like image 54
Emobe Avatar answered Sep 28 '22 13:09

Emobe


I had a similar issue, but locally. Windows IIS, PHP 7 w/ WinCache, using .user.ini

First problem appeared to be cache related. After I moved the lines around in random order (in .user.ini), it finally worked. Second problem, changing max_input_vars = 1000 to 2000 had no effect, but when I moved that entire line to a different line (in .user.ini), then it worked.

like image 20
Ryan Briscall Avatar answered Sep 28 '22 14:09

Ryan Briscall