Search code examples
localhostubuntu-server

deploying web app in ubuntu


I have a project in VM ubuntu and I want to run it on localhost but I get

enter image description here

I have stored the project in var/www/html because when I check in terminal this one shows

enter image description here

How to properly deploy in ubuntu localhost?


Solution

  • You have your content in the ~/var/www/html. However, you need your code to be in the root directory, in /var/www. Just run sudo cp -r ~/var/www/html /var/www/html in your terminal.