James Ray Anderson

James Ray Anderson
James Ray Anderson
0 comments

WordPress on Azure - Increase PHP File Size Upload

12:24 PM
The default PHP maximum file size is 2 MB.  Since you cannot adjust the php.ini file in Azure, you can simply overcome this by adding a user.ini file with the appropriate setting.  On Windows Azure, this can be changed in a matter of minutes following these simple steps:

  1. Login to Azure.
  2. Go to the website dashboard
  3. Click on the website you want to work with.
  4. Click on the link to Edit in Visual Studio.
        (if you don't see this link...see below for directions on how to enable)
  5. In the file explorer window, click on the icon at the top to Add File, save as user.ini
  6. Select the file in the explorer.
  7. Paste the following content (you can change the size to 4M, 8M, etc. For example:

    ;Maximum size of the files that can be uploaded
    upload_max_filesize = 16M

  8. Changes are immediately applied.
  9. Go back to the dashboard for the website.
  10. Click on Restart at the bottom of the page.  


Enabling Visual Studio Online
If your subscription allows, you can enable Visual Studio Online by doing the following:
  1. Login to Azure.
  2. Click on Websites.
  3. Click on the website you want to work with.
  4. Click on Configure
  5. Midway down select the option to Enable Visual Studio Editing Online.   
  6. Click Save at the bottom of the page.

Additional Resources

0 comments:

 
Toggle Footer
Top