Я совершенно новичок в сервере и php мире. Я пытался создать сервер apache php (Kohana) mysql на Unbuntu. Но есть проблема: « Запрошенный URL не найден на этом сервере ». И я не знаю, как это решить. Однако я пробовал решения, которые нашел на форуме, но они не помогли, или я что-то упустил.
Вот структура папок. dtapi-master, который мне нужен при переходе по ссылке localhost/dtapi-master
, но я получаю ошибку, о которой говорил.
![enter image description here](https://i.stack.imgur.com/jp6RP.png)
sudo nano /etc/apache2/sites-available/000-default.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/
# 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
</VirtualHost>
sudo nano /etc/apache2/apache2.conf
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/html/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
sudo nano /etc/apache2/sites-enabled/000-default.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/
# 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
</VirtualHost>