Update ubuntusudo apt-get update
Install apachesudo apt-get install apache2
Install php 7sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.1 php7.1-common
sudo apt-get install php7.1-curl php7.1-xml php7.1-zip php7.1-gd php7.1-mysql php7.1-mbstring
Open file Vagrantfile in folder, copy ip, and try run in browser.
cd ..
cd ..
cd var/www
sudo rm index.html
sudo nano index.php
1 2 | <?php phpinfo(); |
Then save it.