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:
How to use azure files as default storage for linux wordpress Web App?
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?
-
Manu Philip 18,151 Reputation points MVP
2022-02-16T23:59:14+00:00
1 additional answer
Sort by: Most helpful
-
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.
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-linuxThis 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.