I want to deploy a php + laravel website but it's not working. When trying to complete the setup it is not coming up. how can I fix this issue and host my website
Hi @HanbaPvt-7420 !
Hope you are having a great day!
You can try out the below mentioned steps and let me know if the below mentioned solution is working for you.
Go to Web component under Marketplace module in Azure Portal and search for Web App + MySQL.
Click create and fill out the form. You can reuse an existing database or create a new one.
Configure the Web App as a PHP application. On the web app sidebar menu, go to Settings >Configuration > General settings > Stack settings. Change stack to PHP and do not forget to choose the version of PHP your application is using and Save the Changes.
We need to install composer on the web app. Go to App service and click on your web app application, then find Extensions under development tools on its menu sidebar.
Click the Add button > choose extension, then search for "Composer". Agree to Legal terms and click ok.
Upload your application
Go to settings > configuration > path mappings > virtuals application and directories. Change the default folder from “site\wwwroot” to “site\wwwroot\public” and Save the Changes.
If the response is helpful, please click "Accept Answer" and "Upvote" it.
21 people are following this question.