change public_html folder using a symbolic link ? is that ok ?
Hello,
I need to change one user's public_html folder and I would like to be sure that there is no risk with what I did.
I first backed up the current public_html directory using [CODE=bash]mv public_html public_html_backup
, I created a folder named 'mynewfolder' then I created a symbolic link : [CODE=bash]ln -s mynewfolder public_html
It works but I would like to be sure that this will not be overrided by some daemons or some automatic CPanel checks... Could you tell me if that's ok ? Thanks, T.
, I created a folder named 'mynewfolder' then I created a symbolic link : [CODE=bash]ln -s mynewfolder public_html
It works but I would like to be sure that this will not be overrided by some daemons or some automatic CPanel checks... Could you tell me if that's ok ? Thanks, T.
-
Why don't you name the new folder as public_html? Symlink could work fine as you see "www" is a symlink to "public_html" by default. 0 -
That's what I was going to point out - "www" is just a symlink already, so there's no problem with doing that at all. 0 -
Thank you very much ! 0 -
Glad we could help :) 0
Please sign in to leave a comment.
Comments
4 comments