WordPress on App Service, FTP Deployed changes to wwwroot are not reflecting.

IntDat Solns 0 Reputation points
2023-12-24T21:13:10.9666667+00:00

I created a new App Service using WordPress on App Service.

When I deploy the new contents via FTPS (credentials obtained via Deployment Center -> FTP Credentials) the changes do not reflect on the UI even after a restart.

However, when I login to /wp-admin and made any modifications from there changes are reflected immediately.

Please advise what could I be missing?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,966 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2023-12-27T11:26:22.52+00:00

    @IntDat Solns Thanks for reaching here! It seems like you are trying to deploy changes to your WordPress site on App Service using FTP, but the changes are not reflecting on the UI even after a restart.

    If so, it's possible that the changes are not being deployed to the correct directory. By default, WordPress on App Service is deployed to the D:\home\site\wwwroot directory. When you deploy your changes via FTP, make sure that you are uploading them to this directory.

    Also, please note that when you deploy your changes via FTP, it may take some time for the changes to be reflected on the UI. This is because the App Service needs to restart the application to apply the changes. You can try restarting the App Service again to see if the changes are reflected.

    If you are still having issues, you can try enabling the WEBSITE_RUN_FROM_PACKAGE app setting to run your app directly from a deployment ZIP package file. This can help eliminate file lock conflicts between deployment and runtime, and ensure that only fully deployed apps are running at any time.

    You can find more information on how to enable this functionality in your app in the following article:

    https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package

    I hope this helps! Let me know if you have further questions or issue remains.

    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.