Install easyengine in different directory?


#1

Is there a way to change the location of how the site is created? currently easyengine creates the site in /var/www/ I want to change the location since I’m running low on space in that location. I mounted a new drive so i want to switch site location to /data/var/www/ Is there any trick to do this?


#2

Hello Ruriko, just move your website data in the folder you want, then edit the root path in nginx configuration /etc/nginx/sites-availables/yourdomain.tld


#3

but wouldn’t that break some of commands in ee? like disabling the site


#4

It will not break ee disable command, but some other may not work properly


#5

I’d do a little different.

  1. ee site create as usual
  2. create domain.com in your new hard drive: mkdir /data/var/www/domain.com
  3. mv /var/www/domain.com/* /data/var/www/domain.com/
  4. rm /var/www/domain.com -rf
  5. ln -s /data/var/www/domain.com /var/www/

The symbolic link will make everything work as if the website was configured on default location, while it’s files would be actually stored wherever you want.


#6

Great solution, I will copy that somewhere if I need it later.


#7