I`m installing NextCloud 12.0.2 in Ubuntu server 16.04.3 with LAMP + php 7.0. The installation goes well, but when I try to go http://ipaddress/nextcloud appears 404 not found.
The config of /etc/apache2/sites-available/nextcloud.conf is:
<VirtualHost *:80>
ServerAdmin admin@ubuntu
DocumentRoot "/var/www/html/nextcloud/"
ServerName ipaddress
ServerAlias ubuntu
<Directory “/var/www/html/nextcloud/”>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common
Make sure that in /etc/apache2/sites-enabled/* are no other files that define a <VirtualHost *:80>. Sometimes the logfiles can help to see where the webserver tries to access files.
If you use security modules like SELinux, you should check their logfiles and enhance logging in case they are preventing access.
In /etc/apache2/sites-enabled/* I have 000-default.conf default-ssl.conf nextcloud.conf files. But first and second files I dont know what it is… I need to delete that files? thanks. I dont use SELinux
Arman_Khalatyan apache status is active, thank you
000-default.conf also contains a port 80 vhost. Disable it by a2dismod 000-default.conf or directly remove the symlink. The other conf btw contains the port 443/ssl vhost, in case you use it (what I would clearly recommend).