question

HanbaPvt-7420 avatar image
0 Votes"
HanbaPvt-7420 asked vipullag-MSFT edited

deploying laravel + php website on azure

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

azure-virtual-machines
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Taz-3478 avatar image
2 Votes"
Taz-3478 answered HanbaPvt-7420 commented

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.

  1. Go to Web component under Marketplace module in Azure Portal and search for Web App + MySQL.

  2. Click create and fill out the form. You can reuse an existing database or create a new one.

  3. 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.

  4. 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.

  5. Upload your application

  6. 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.


Regards,
Tasadduq



If the response is helpful, please click "Accept Answer" and "Upvote" it.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

website is up and running. thanks a lot for your help

0 Votes 0 ·