Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Q & A: howto use another space in my system for storage?
#1
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping