В файле hosts добавил имя сайта, потом в каталоге /etc/apache2/sites-available создал файл с названием сайта и следующим содержимым:
<VirtualHost *:80>
ServerAdmin admin@site.ru
ServerName site.ru
DocumentRoot /home/user/public_html/site.ru/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/user/public_html/site.ru/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /home/user/public_html/site.ru/log/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /home/user/public_html/site.ru/log/access.log combined
DirectoryIndex index.php index.html
</VirtualHost>
Потом создал ссылку в каталоге /etc/apache2/sites-enabled на конфиг вируального хоста
Потом подключил модуль userdir:
ln -s /etc/apache2/mods-available/userdir.load /etc/apache2/mods-enabled/userdir.load
ln -s /etc/apache2/mods-available/userdir.conf /etc/apache2/mods-enabled/userdir.conf
Пользователь решил продолжить мысль 23 Февраля 2010, 16:49:03:
Спасибо за помощь. Проблему уже решил.