04-14-2023, 10:12 PM
Question:
I have a Big empty secondary 1TB drive. I need to point one of my domains to the secondary drive instead of the default /var/www/vhosts/somedomain.com/
Do you know how I can do that?
Answer:
you can do that like:
<code>mv /var/www/vhosts/yourftpusername <code>/var/www/vhosts/yourftpusername2
<code>ln -s /your/target/empty/drive/path <code>/var/www/vhosts/yourftpusername
<code>mv /var/www/vhosts/yourftpusername2/* /var/www/vhosts/yourftpusername/
<code>chown -Rvf vsftpd /var/www/vhosts/yourftpusername
This was simple linux so-called "symlinking".
I did not tested it but should work.
the idea is:
move your original data to a new name,
symlink your empty space to your original path
move your original data to your new symlink
make it ftp reachable (owned by vsftpd service)
Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
I have a Big empty secondary 1TB drive. I need to point one of my domains to the secondary drive instead of the default /var/www/vhosts/somedomain.com/
Do you know how I can do that?
Answer:
you can do that like:
<code>mv /var/www/vhosts/yourftpusername <code>/var/www/vhosts/yourftpusername2
<code>ln -s /your/target/empty/drive/path <code>/var/www/vhosts/yourftpusername
<code>mv /var/www/vhosts/yourftpusername2/* /var/www/vhosts/yourftpusername/
<code>chown -Rvf vsftpd /var/www/vhosts/yourftpusername
This was simple linux so-called "symlinking".
I did not tested it but should work.
the idea is:
move your original data to a new name,
symlink your empty space to your original path
move your original data to your new symlink
make it ftp reachable (owned by vsftpd service)
Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.