Search code examples
phpazurezend-framework

How to change root directory for PHP azure website?


I have created a PHP website on azure using app services. I use continuous deployment through bitbucket. I need to point the website to public folder in my code to run the app as it is built with zend framework.

After some search, was not able to find how to change the folder where the server points for default directory.


Solution

  • Go to Azure Web apps settings -> Application Settings -> Virtual Applications and directories and setup the physical path of the new folder. Also check the Application checkbox.

    Restart the web app once.