PDA

View Full Version : Linux Symlinks



Hypertext
13-08-2008, 12:56 AM
Hi.

So when a user logs into my server they go to /home/username/ $

I need them to be at a different place ie /var/www/vhosts/x.com/httpdocs/

As it makes things a lot simpler, I was going to use a symbolic link, but then i wouldn't have a user's home dir, is there any work-a-round on this?

Dentafrice
13-08-2008, 01:00 AM
/home/username/ is their linux directory, not their web directory.

If you want to setup vhosts, look in the apache config.

If you don't have cPanel or another control panel (IE Webmin or LxAdmin) you need to add vhosts yourself.

Hypertext
13-08-2008, 01:05 AM
I have Plesk, I've set up the virtual hosts they're like this:
/var/www/vhosts/subdomain.domain.tld/httpdocs/

I never said /home/username/ is their web directory ;)

I don't want to reconfigure all that, that's why i was wondering if there was a work-a-roound of if a symlink setup would suffice in some way.

Dentafrice
13-08-2008, 01:06 AM
That would be too much of a pain in the ***. Just change the user's home directory to their vhost directory.

That's about as much trouble as a symlink solution.

Although when creating a new account in Plesk, it should generate the user, unless it has a default home directory in plesk.

Want to hide these adverts? Register an account for free!