Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

drxgfxlara's avatar

Deploy to Azure/VPS

I am having trouble viewing my site on Azure. I created a php app and i deployed the app. When i go to the root in the url i am shown with "Whoops, looks like something went wrong" . It's a default laravel app. I've made no edits to it whatsoever. All i did was upload it. I also installed the composer extension Azure provides and ran the install. also if i go to my root url.com/robots.txt I see the robots file if that's any help.

Not sure how to deploy. I just want a simple and easy way to upload a project.

0 likes
3 replies
sam78640's avatar

Run

composer install --no-dev

in your terminal while in your project directory

Then

chmod -R 775 /path/to/your/project/storage

Then

chown -R :www-data /path/to/your/project

It should work then

One more thing, do use git to upload and manage your project. I don't know if i'm allow to link to external links on this forum but I will do it anyways to help you out. https://devmarketer.io/learn/deploy-laravel-5-app-lemp-stack-ubuntu-nginx/ It's a whole blog with detailed instructions on how you should deploy your laravel project to server and manage it after that.

1 like
drxgfxlara's avatar

Yea, I am currently using VSTS to deploy. As soon as I push and merge to the master it automatically pushes the latest repo live.

I received - invalid group: ':www-data' on the last command.

And i was looking at that before but it didn't seem too helpful. Just seemed to over complicate things. I guess I can take another look at it and see if I can get it running, Thanks

drxgfxlara's avatar

I got it working, it had to do with some file permissions on the server. I had to enable write access to the bootstrap folder.

Please or to participate in this conversation.