I have two droplets active, in both of theme I have wordpress installed.
In one of them I follow this tutorial to instal LAMP and WordPress. This tutorial says: " …The location of the document root in the Ubuntu 14.04 LAMP guide is /var/www/html/. We can transfer our WordPress files there by typing:…" So I have my wordpress files under var/www/html
But in the other droplet I follow this other tutorial to install wordpress through one click WordPress install, and this installed wordpress files on var/www.
I have read on google that on ubuntu 14.04 the root directory have been moved from var/www to var/www/html. Is digital ocean wordpress one click install adding files on incorrect directory? I should move my files from var/www to var/www/htmll?
Thanks in advance!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
The One-Click Wordpress installs Wordpress in /var/www
and sets DocumentRoot
to /var/www
instead of /var/www/html
(see /etc/apache2/apache2.conf
– the virtual host should be at the very bottom of the file), so you should store your files in /var/www
.
You could possibly look at this file: /etc/apache2/sites-enabled/000-default.conf
it will have a section that looks like this:
or whatever the folder is. You can change that if you want, and then restart apache.
I run multiple websites on each server, so I use a unique folder for each website. One site’s config file might be:
and another might be:
the /var/www/html is just a default starting place. but any folder will work.
You could possibly look at this file: /etc/apache2/sites-enabled/000-default.conf
it will have a section that looks like this:
or whatever the folder is. You can change that if you want, and then restart apache.
I run multiple websites on each server, so I use a unique folder for each website. One site’s config file might be:
and another might be:
the /var/www/html is just a default starting place. but any folder will work.
You could possibly look at this file: /etc/apache2/sites-enabled/000-default.conf
it will have a section that looks like this:
or whatever the folder is. You can change that if you want, and then restart apache.
I run multiple websites on each server, so I use a unique folder for each website. One site’s config file might be:
and another might be:
the /var/www/html is just a default starting place. but any folder will work.
You could possibly look at this file: /etc/apache2/sites-enabled/000-default.conf
it will have a section that looks like this:
or whatever the folder is. You can change that if you want, and then restart apache.
I run multiple websites on each server, so I use a unique folder for each website. One site’s config file might be:
and another might be:
the /var/www/html is just a default starting place. but any folder will work.
If I installed ghost in var/www and it is running but when I try to create a new directory (subdomain) nothing happens. I still see my ghost blog in my subdomains. What can i do?
Thanks!
The one-click LAMP installation installs php to work with /var/www/html.
You could still use another directory if you don’t use php.