How to mount a folder to public_html
OK here is my problem.
With cpanel I created an account website. the location to that website public_html in my server is: /home/website/public_html/ Now on the same server I have another hard drive which is on /hdd2/ I have a folder there which is /hdd2/gallery/ Now my question is. I want to mount the public_html to the /hdd2/gallery/ so that /hdd2/gallery/ is treated as public_html for the "website" account. I am pretty new with linux. I am runnin centos on the server. So what exactly is the command I type to get this done. Please give example using the paths I specified. and after I mount, do I run chown aswell? Let me know. Thanks a lot. |
Quote:
Reasonable options: 1. mount /dev/hdd2 on top of /home/website/public_html/, so that /home/website/public_html/gallery/ has the content 2. make /home/website/public_html/ a softlink to /hdd2/gallery/, so that /home/website/public_html/ leads to /hdd2/gallery/ Mounting: mount -t ext3 /dev/hdd2 /home/website/public_html/ (will hide original contents of /hdd2/gallery/) Softlinking: ln -s /hdd2/gallery/ /home/website/public_html/ (must delete public_html directory before creating a softlink with that name) Linux |
All times are GMT -5. The time now is 02:20 PM. |