Всем привет.
Скажу сразу что "гуглил", читал, опробовал несколько вариантов но увы - грабли, грабли, грабли.
Дабы чтобы моя инициатива не стала минус 2, а боевой дух минус 4. Решил обратиться к архимагам в данном направлении.
Установил apache2 mysql-server php5 php5-mysql phpmyadmin
Далее стал добавлять виртуальный хост - bngroup
Дано:
1. /etc/apache2/sites-available/bngroup.conf
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName bngroup
ServerAdmin webmaster@localhost
DocumentRoot /home/den/bngroup
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/den/bngroup>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
2./etc/hosts
127.0.0.1 localhost bngroup
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
3./home/den/bngroup/index.html
<html>
Привет
</html>
Результат при вводе в браузере bngroup:
Forbidden
You don't have permission to access / on this server.
Apache/2.4.6 (Ubuntu) Server at bngroup Port 80
Перед вводом в браузере bngroup в терминале ввожу
sudo /etc/init.d/apache2 start
Получаю
sudo: unable to resolve host encom
* Starting web server apache2 AH00557: apache2: apr_sockaddr_info_get() failed for encom
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
*
sudo: unable to resolve host encom- это предыдущая попытка (название виртуального хоста)
Ну вот вроде бы и все. Прошу помочь и разобраться в этом вопросе.