Web Hosting Talk







View Full Version : How to create a link (like CPanel 'www' point to 'public_html')


FrzzMan
08-14-2002, 02:56 AM
Hello, I notice that www directory just point me to public_html directory...

So how can I create a link like that? What is its name? virtual link? hotlink?

PS: I have SSH

ServerSonic
08-14-2002, 02:57 AM
Theyre called symlinks. To create one execute the following shell command:

ln -s source destination

FrzzMan
08-14-2002, 03:00 AM
ah, i forgot the name so it's not easy to ask ppl hehehe... thank you m8...

ServerSonic
08-14-2002, 03:02 AM
Sure no problem:)

FrzzMan
08-14-2002, 03:08 AM
errr... it didn't work

i try

ln -s abc user/abc

it report

ln: `user/abc/abc`: File exist

but there's no abc in user/abc/

Annette
08-14-2002, 04:47 AM
Think of it this way:

ln -s (what you want to link to) (what you want to call it)

Using the www -> public_html link for a second, that would be

ln -s public_html www

The error you're getting usually means that you've reversed the syntax.