home to symlink to home?

neorder

Verified User
Joined
Oct 1, 2003
Messages
346
i've a user deleted his public_html accidentally, now i've recreated a public_html for him, but what is the standard format to syslink his public_html to the real public_html?

say he has 2 domains hosted in one account, how can i do symlink?

below doesnt work

ln -s /home/public_html /home/user/domains/domain.com/public_html?

thank you.
 
Nope, it sure doesn't. :)

I'm not exactly sure what you want to do.

He has multiple domains?

So under /home/user/domains he has multiple domains?

Is there a /home/user/public_html link to /home/user/domains/domain.com/public_html?

If not, then that's what you need to create.

The easy way to create it is to log in through the DirectAdmin http administration page for that user, and make the domain you want the "default domain".

That'll create the link.

Jeff
 
i've tried

ln -s /home/da/domains/hisdomain.com/public_html /home/da/public_html

but it doesnt' create a public_html shortcut under /home/da.

the user claim that he din't delete it, is it possible due to the DA upgrading from 1.22 to 1.24? :confused:
 
I hesitate to respond since you didn't say whether you tried my method or not.

But...

Do you get any kind of error when you try to create the link?

If not, what happens when you search for public_html ?

# find / -name "public_html"

You should get a bunch of directories and links.

Check 'em all. I sone of them misplaced?

Jeff
 
Back
Top