How to use azure files as default storage for linux wordpress Web App?

Josmer Torres 21 Reputation points
2022-02-16T22:45:23.087+00:00

Hello! I am currently creating a wordpress multi-site in app service linux and I have encountered a problem, the problem is the storage capacity.

The main function of my page is to serve and store documents like pdf, word, etc.

In my attempt to increase storage I found this tutorial: https://azure.microsoft.com/es-es/blog/new-plugin-enables-wordpress-to-use-windows-azure-storage-services/

After following the steps I managed to connect my site to azure blobs, the problem is that the plugin I use to upload documents keeps sending the PDFs to the local server instead of the blobs.
Plugin: https://www.wpdownloadmanager.com

Is there a way to send all the files that are uploaded to wordpress through a plugin to azure files?

What are the constants that I must enter in wp-config in order to change the storage path?

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,277 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,104 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,663 questions
0 comments No comments
{count} votes

Accepted answer
  1. Manu Philip 18,151 Reputation points MVP
    2022-02-16T23:59:14+00:00

    When you wanted to use Azure file share as the storage option of your WordPress media files, the path mapping should be properly set in app services. The mount path should be set something like as below:
    175171-image.png


1 additional answer

Sort by: Most helpful
  1. ajkuma 25,781 Reputation points Microsoft Employee
    2022-02-19T18:45:33.117+00:00

    @Josmer Torres , Following-up from my private comment. Adding to ManuPhilip's suggestions.

    You need to ensure that you select “Use Microsoft Azure Storage for all media uploads on this site" option is selected, on Microsoft Azure Storage for WordPress (Settings) . This will ensure that your media is uploaded to the Azure Storage account.

    176037-image.png

    As mentioned in the Azure App Service blog -WordPress Best Practices for Performance

    Additionally, please check Mount Azure Storage as a local share in a custom container in App Service
    https://learn.microsoft.com/azure/app-service/configure-connect-to-azure-storage?tabs=portal&pivots=container-linux

    This guide shows how to mount Azure Storage as a network share in a built-in Linux container or a custom Linux container in App Service.

    Looking forward to your reply. Thanks for your time and feedback.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.