change public_html folder using a symbolic link ? is that ok ?

trucmuche

Well-Known Member
Nov 20, 2014
98
4
58
cPanel Access Level
Root Administrator
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
Bash:
mv public_html public_html_backup
, I created a folder named 'mynewfolder' then I created a symbolic link :
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.
 
Last edited by a moderator:

andrew.n

Well-Known Member
Jun 9, 2020
965
358
63
EU
cPanel Access Level
Root Administrator
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.