Install Apache

0
227
views

Update ubuntu
sudo apt-get update

Install apache
sudo apt-get install apache2

Install php 7
sudo 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

Then save it.

Reference :
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04

LEAVE A REPLY

Please enter your name here
Please enter your comment!