404 error from web

9.1.x

#1

Please help us by providing the following info. Before posting please also check the pinned "Known issues" threads and make sure that you're running the latest available version for your oC release: https://owncloud.org/changelog/

Steps to reproduce
1.connect throw domain to site .com/owncloud
2.if connected via 192.x.x.x/owncloud it works
3.

Expected behaviour
Tell us what should happen : connect to login page

Actual behaviour
Tell us what happens instead : error 404, page not found

Server configuration
Operating system: ubuntu 16.04.2
Web server: apache2
Database: mysql
PHP version: 7.0.15-0
ownCloud version (see ownCloud admin page): 9.1.4
Updated from an older ownCloud or fresh install: fresh install
Special configuration (external storage, external authentication, reverse proxy, server-side-encryption): nope

ownCloud log (data/owncloud.log)

Please paste possible errors in the following code block, see https://central.owncloud.org/t/how-to-find-webserver-or-oc-logfile-enable-php-logfile/808 for more info

{"reqId":"uu9mq0klY\/ayIkdWaZue","remoteAddr":"127.0.0.1","app":"mysql.setup","message":"Specific user creation failed: An exception occurred while executing 'SELECT user FROM mysql.user WHERE user=?' with params [\"oc_root\"]:\n\nSQLSTATE[42000]: Syntax error or access violation: 1142 SELECT command denied to user 'owncloud'@'localhost' for table 'user'","level":3,"time":"2016-08-27T13:23:00+00:00","method":"POST","url":"\/owncloud\/index.php","user":"--"}
{"reqId":"uu9mq0klY\/ayIkdWaZue","remoteAddr":"127.0.0.1","app":"mysql.setup","message":"Database creation failed: An exception occurred while executing 'GRANT ALL PRIVILEGES ON `owncloud` . * TO 'owncloud'':\n\nSQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user 'owncloud'@'localhost' to database 'owncloud'","level":3,"time":"2016-08-27T13:23:00+00:00","method":"POST","url":"\/owncloud\/index.php","user":"--"}

Integrity status for oC9+

Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.
No errors have been found.

#2

Hi,

this needs basic knowledge about webservers from your side. ownCloud is just a web application written in PHP and served by your webserver.

For such webserver issues there is no general solution for such issues. It might help if you get familiar with webservers and your webserver config first. Then you might be able to configure your webserver correctly so ownCloud is served correctly via the IP and the Domain of your server.

Hints:
https://httpd.apache.org/docs/current/vhosts/index.html
https://httpd.apache.org/docs/current/vhosts/name-based.html


#3

ok, I supposed something like that.
But the problem occurred afther adding fqdn config to apache2 with Servername localhost inside, and using a2enconf fqdn to enable it.
I deleted it, used a2disconf fqdn but i could not reach my server anymore with site/owncloud
I appreciate some help, even if it's my fault..