

- Path is already configured as a root folder linux how to#
- Path is already configured as a root folder linux install#
- Path is already configured as a root folder linux update#
If you’re managing a busy or growing web site, you might be interested in learning how to load test your web server to identify performance bottlenecks before you encounter them in production. It also allows you to take advantage of alternative storage devices such as network block storage, an important step in scaling a web site as its needs change. This can help you with basic web server administration, like effectively hosting multiple sites on a single server. In this tutorial, we covered how to change the Apache document root to a new location. Once you’re comfortable everything is in order, don’t forget to remove the original copy of the data. When the server has restarted, visit your affected sites and ensure they’re working as expected. Use the following command to restart Apache: Otherwise, track down and fix the problems it reported. Set the 'ServerName' directive globally to suppress this messageĪs long as you get Syntax OK, restart the web server. OutputAH00558: apache2: Could not reliably determine the server's fully qualified domain name, Wherever you see the original document root’s path in the output of grep, you’ll need to investigate. On an existing installation, you may find things like aliases and rewrites that need updating, too. With a default installation, there’s the DocumentRoot and a Directory block you’ll need to change.

Note: You should look for other places the original path showed up, and change those to the new location as well.
Path is already configured as a root folder linux update#
Next we’ll find the line that begins with DocumentRoot and update it with the new location. sudo nano /etc/apache2/sites-enabled/nf.For our example, we’re going to look at the two Virtual Host files that ship with Apache by default, nf and nf. If you’re working with an existing installation, you should modify the virtual host files you found earlier with the grep command. For background about the hierarchy of configuration files, take a look at How To Configure the Apache Web Server on an Ubuntu or Debian VPS.

Step 2 - Updating the configuration filesĪpache2 makes use of both global and site specific configuration files. Now we’re ready to update the configuration.
Path is already configured as a root folder linux install#
You can learn more about how to set up a user with these privileges in our Initial Server Setup with Ubuntu 16.04 guide.Īn Apache2 web server: If you haven’t already set one up, the Apache section of the in-depth article, How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 16.04, can guide you.Ī new location for your document root: The new document root location is completely configurable based on your needs. PrerequisitesĪn Ubuntu 16.04 server with a non-root user with sudo privileges. In this guide, we’ll show you how to move an Apache document root to a new location. On Ubuntu, by default, the Apache2 web server stores its documents in /var/For example, if you serve multiple websites from the same Apache instance, putting each one’s document root on its own volume allows you to scale in response to the needs of a specific site or client.
