×
  1. Step - 1: Create a directory. $ mkdir /home/masud/www/
  2. Step - 2: Open apache2 configuration file. ...
  3. Step - 3: Open default virtual host configuration file from path. ...
  4. Step - 4: Finally restart apache.
People also ask
Apr 29, 2022 · Step 1 — Copying Files to the New Location · Step 2 — Updating the Configuration Files · Step 3 — Restarting Apache.
Jul 11, 2018 · Step 1 — Copying Files to the New Location. On a fresh installation of Apache, the document root is located at /var/www/html . By following the ...
May 10, 2022 · step 1 :To change Apache's root directory, run: cd /etc/apache2/sites-available. step 2 :Then open the 000-default.conf file using the command: ...
Oct 28, 2015 · I knew how to do it on Apache 2.2, however, how do I change the document root on Apache 2.4? I run Debian 8.20 on a Virtualbox VM as my apache ...
Aug 25, 2010 · 1. Go to the terminal and type: "sudo gedit /etc/apache2/httpd.conf" (without the quotes) and hit enter. The httpd.conf file will be blank. Type ...