public_html symbolic link

Rookie

Verified User
Joined
Aug 11, 2004
Messages
72
Location
Gold Coast, Australia
Hi,
I have a client that deleted their public_html folder and all I had to do in the passed was type:
ln -s ./domains/<domain-name>/public_html ./public_html/
from their /home/<domain-name> directory.

But that doesn't create a symbolic link anymore!! I can recreate their directory but it doesnt create to symbolic link :confused:

What do i have to type to creat a symbolic link so that the "RED ARROW" appears on the yellow folder public_html directory for the client.

Thanks
Rookie


By the way: I use the old way (and set it as below) because my clients are all used to that.
http://www.directadmin.com/features.php?id=855
 
The code you posted should crate a symbolic link. What is it doing?

Jeff
 
Well the yellow folder hasen't got a red arrow on it once completed.

I don't need the red arrow but allot of my customers use it as a visual :)

Is there anyway to recreate the red arrow..

Thanks
 
The symbolic link should show with the error in the DirectAdmin file manager.

Can you post the output of:
Code:
# ls -al /home/USERNAME
Jeff
 
Well to tell you the truth jlasman, I couldn't work out how to get the red arrow back, so in the end, I just landed up deleting their domain and then reset it up again.

However! Customers delete their public_html folder all the time, so as soon as i get another one, I will post it here.

I really appreciate your help.

Regards
Rookie
 
Searching how to modify public_html link, I found this post

For the fist problem :
ln -s ./domains/<domain-name>/public_html ./public_html/
has to be replace by
ln -s ./domains/<domain-name>/public_html ./public_html (without /)

Now my small problem

How to change owner of this symbolic link ?
Because, when i create it, it is to root:root instead of user:user

and
chown user:user /home/user/public_html changes nothing
 
In the user-level of DirectAdmin, go to Domain Setup...

Select your domain, and then hit the 'Set as Default' button. It should re-create the public_html symbolic link for you.

Does that help at all?
 
Now my small problem

How to change owner of this symbolic link ?
Because, when i create it, it is to root:root instead of user:user

and
chown user:user /home/user/public_html changes nothing


Well done, that was the problem!!! I had a / on the end. Once i removed the / it worked so thanks heaps...


However! Your right, I now can't change the 'owner' from root back to the user??

Does anyone have any ideas?

Regards
Rookie
 
In the user-level of DirectAdmin, go to Domain Setup...

Select your domain, and then hit the 'Set as Default' button. It should re-create the public_html symbolic link for you.

Does that help at all?

Yes, you are right ! It gives back link to the owner (so, now, he can delete it another time... :rolleyes:)

My dream for beginner users : this link, and directory public_html not erasable... :p
 
Yes, you are right ! It gives back link to the owner (so, now, he can delete it another time... :rolleyes:)

My dream for beginner users : this link, and directory public_html not erasable... :p

The link is easy, leave the owner as root.
 
Back
Top