How do I move my wordpress to a new folder?

July 12, 2016 1.7k views

I’m a new user. I followed the instructions and i installed Wordpress. But I will install 2 or 3 web sites to the same IP. How can I move the Wordpress to a new folder?
Thank you

2 Answers

Depending on your webserver, the minimum would be to change the DocumentRoot (with Apache) or root (with nginx). See the tutorials on creating virtual hosts for Apache on Ubuntu 16.04 and NGINX on Ubuntu 16.04

by Brennen Bearnes
The Apache web server is the most popular way to serve web content on the internet. Apache has the ability to serve multiple domains from a single server by using a mechanism called "virtual hosts". If a virtual host is configured correctly for each domain, the web server can correctly route traffic to the appropriate files based on the domain name requested. In this guide, we'll demonstrate how to configure Apache virtual hosts on an Ubuntu 16.04 server.

I follow this two tutorials.
Initial Server Setup with Ubuntu 16.04 and How To Install WordPress with LAMP on Ubuntu 16.04

The only think that I’m afraid is to destroy the Wordpress if I moving it.

by Mitchell Anicas
When you start a new server, there are a few steps that you should take every time to add some basic security and give you a solid foundation. In this guide, we'll walk you through the basic steps necessary to hit the ground running with Ubuntu 16.04.
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!