PDA

View Full Version : [ubuntu] Help with Multiple Sites in PHP



Atsuisofu
September 9th, 2011, 06:20 AM
So I have a LAMP install with 11.04 I havent used a server for years and I am running an ubuntu GUI server using 11.04 with LAMP so I am not remembering what I did back in the day to have my default site stay at /var/www/ and also have another site /home/user/public_html. But the second site will be able to be accessed from a browser as MYSERVERIP/~user I remember ding this when I was younger but I cannotfro the life of me remember how to do this. Any help would be much appreciated.


~Regards

Wim Sturkenboom
September 9th, 2011, 09:46 AM
I think you need to read up on virtual hosts; does that ring a bell?

Wayne_V
September 9th, 2011, 10:35 AM
user public directories can be configured with:

$ sudo a2enmod userdir

see 'man a2enmod' and /etc/apache2/mods-available