Raspian 10 (Buster)
Apache 2.4.38
lighttpd 1.4.53
I previously installed lighttpd and it was/is running w/out issue. Today I installed apache so I can run ownCloud. I went through the installation process without issue for apache, owncloud, and the owncloud dependencies. After the initial install I was able to access the owncloud admin setup page at the via 192.168.1.10/owncloud (/var/www/html/owncloud) but I ran into PHP errors. I realized that lighttpd was using port 80 on 127.0.0.1 loopback and was preventing apache from loading properly. So I switched lighttpd to port 8080. After restarting the service it happily went about it's business. I restarted apache at which point I am not able to access any files via apache on 80.
Not Found. The requested URL was not found on this server. Apache/2.4.38 (Raspbian) Server at 192.168.1.10 Port 80
I run checks on apache to make sure it is configured correctly.
systemctl status apache2
which comes up good and apache2ctl -t
which returns OK. so everything looks good. So I change apache log reporting to debug and look at the log files:
Access log:
192.168.1.20 - - [05/May/2020:18:38:35 -0900] "GET /index.php HTTP/1.1" 404 496 "http://192.168.1.10/"
Error log:
[Tue May 05 18:38:35.852298 2020] [core:info] [pid 703:tid 2882475040] [client 192.168.1.20:55977] AH00128: File does not exist: /var/www/owncloud/index.php, referer: http://192.168.1.10/
Still nothing obvious. I rebooted. It doesn't load I'm alive! at the doc root either. I've looked through the all the apache config files but I can't see anything and I've read through numerous searches. I know this is a simple issue but can't figure it out.
I know I am overlooking something basc but for the life of me I can't spot it. Any help appreciated!
Edit: Output from tail:
#</Directory>
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives. See also the AllowOverride
# directive.
#
AccessFileName .htaccess
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>
#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# These deviate from the Common Log Format definitions in that they use %O
# (the actual bytes sent including headers) instead of %b (the size of the
# requested file), because the latter makes it impossible to detect partial
# requests.
#
# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
# Use mod_remoteip instead.
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.
# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf
stat /var/www/owncloud/index.php
,stat /var/www/owncloud/
. should be www-data both. Do you have apparmor on your install?ls /etc/apparmor.d/
should show all available profiles. Also the this problem may be in HTML referencing a broken link to an image, css, js file, so that when the browser receives HTML and gets these resources Apache can't find them and prints the "File Does Not Exist" error. Check rootpath configuration