Changing vhost (hostdata) location
(The location where client's hosting spaces are stored)

You may want to change Sentora's default vhost (hostdata) folder. (The location where client's hosting spaces are stored)

This is an easy way from SSH console or local console.

1) Login to your console

2) Change Sentora subdomain

setso --set hosted_dir new_hostdata_location/hostdata

OR

  1. Log into phpMyAdmin as root user.
  2. Open table:sentora_core.x_settings
  3. Edit row 69 (Or search for /var/sentora/hostdata/)
  4. In row 69 put your new or updated Sentora hostdata location: : new_hostdata_location/hostdata

Notes:

  • Replace new_hostdata_location with the new drive/folder path to where you want to now store your client's hosting spaces. .

3) Tells Sentora daemon that the vhost file must be rewriten

setso --set apache_changed true

4) Wait until Sentora daemon run (each 5 min)

It is NOT ADVISED, but if you are really too much impatient (and if you understand what it implies) you can run the daemon manually with:

php -q /etc/sentora/panel/bin/daemon.php

5) Update the new folder with the proper ownership and permissions:

  • Ubuntu: www-data:www-data

  • CentOS: apache:apache

PenWant to help ? Click here to report mistake or to send complement to add.