0% found this document useful (0 votes)
27 views1 page

Document Root

The document provides instructions to install Apache2 on Ubuntu, change the document root location, configure virtual hosts, and test the Apache2 configuration.

Uploaded by

RAKOTO Hasina
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views1 page

Document Root

The document provides instructions to install Apache2 on Ubuntu, change the document root location, configure virtual hosts, and test the Apache2 configuration.

Uploaded by

RAKOTO Hasina
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

lsb_rlease cd; getconf LONG_BIT

sudo apt install -y apache2


sudo systeme status apache2;sudo systemctl enable apache2

Find apache Document Root:- sudo grep -R "DocumentRoot" /ect/apache2/sites-enabled


sudo rsync -av /var/www/html /home/ubuntu/newlocation
sudo ls -la /home/ubuntu/newlocation
sudo chown -R $(whoami):$(whoami) /home/ubuntu/newlocation ; sudo chmod -R 755
/home/ubuntu/new location
sudo ls /etc/apache2/sites-available/
sudo gedit /etc/apache2/sites-enabled/000-default.conf&>/dev/null
/home/hasina/projetWeb/html
sudo gedit /etc/apache2/sites-available/default-ssl.conf &>/dev/null
/home/hasina/projetWeb/html
sudo gedit /etc/apache2/apache2.conf &>/dev/null
sudo apache2ctl configtest

You might also like