Error 404, index.php not found

Ask all your questions regarding OC 9.0 Please read the Support Forum Rules
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
warden
Newbie
Posts: 1
Joined: Tue Mar 08, 2016 10:32 pm
ownCloud version: 9.0.0
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.6.17

Error 404, index.php not found

Postby warden » Tue Mar 08, 2016 11:53 pm

Environment: Devuan 64-bit Jessie, up to date
Server: Apache 2.4.x
Database: mysql, mariadb
Client: N/A
OC-Version: new 9.0
PHP-Version: 5.6.17

I just updated OC from 8.2 to 9.0 by way of an apt-get upgrade from apt. All went smooth until I tried to access the login page at "http://ip-address/owncloud" and I get an error about "index.php not found on this server". However, when I access the site from "http://ip-address/owncloud/index.php", it works as it should. Then when I logout it refreshes the page back to "http://ip-address/owncloud" where I get the same dreaded error page again.

What I have checked:
The root of OC is at /var/www/owncloud with an apache alias
The alias in the owncloud.conf is working okay, I guess... "Alias /owncloud "/var/www/owncloud/".

This was working fine in v.8.2.x, but the update altered it. Really the only thing different that I can spot might be the .htaccess file, but I can't spot what could be altering the index.php file.

Ideas?

dathbe
Beginner
Posts: 17
Joined: Wed Sep 16, 2015 5:25 pm
ownCloud version: 8.1.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4

Re: Error 404, index.php not found

Postby dathbe » Tue Mar 08, 2016 11:59 pm

Same issue here.

tflidd
Forum Moderator
Posts: 7159
Joined: Sat Dec 07, 2013 7:27 pm
ownCloud version: 8.2.3
Webserver: Apache
Database: MySQL
OS: Linux

Re: Error 404, index.php not found

Postby tflidd » Wed Mar 09, 2016 12:16 am

This error has been reported: https://github.com/owncloud/core/issues/22970
A temporary fix is to comment this line in /var/www/owncloud/.htaccess:

Code: Select all

RewriteRule .* index.php [PT,E=PATH_INFO:$1]


If someone can capture the traffic between browser and server, this would help to solve this issue:
https://github.com/owncloud/core/issues ... -193964395

dathbe
Beginner
Posts: 17
Joined: Wed Sep 16, 2015 5:25 pm
ownCloud version: 8.1.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4

Re: Error 404, index.php not found

Postby dathbe » Wed Mar 09, 2016 12:36 am

If I knew how to capture the traffic, I would do so.

tflidd
Forum Moderator
Posts: 7159
Joined: Sat Dec 07, 2013 7:27 pm
ownCloud version: 8.2.3
Webserver: Apache
Database: MySQL
OS: Linux

Re: Error 404, index.php not found

Postby tflidd » Wed Mar 09, 2016 12:50 am


kslagerman
Newbie
Posts: 2
Joined: Wed Mar 09, 2016 7:59 am
ownCloud version: 9.0.0
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.6.11

Re: Error 404, index.php not found

Postby kslagerman » Wed Mar 09, 2016 8:03 am

Same here. Upgraded to 9 via Ubuntu package manager. Everything went fairly smooth but I immediately noticed that I now need to enter the full URL to access ownCloud. e.g. "...<myserver>/owncloud/index.php"

I took a look at the .htaccess file in the /owncloud/ dir and the DirectoryIndex index.php line appears to be correct.

Minimal inconvenience, but it would be nice to know what happened.

dathbe
Beginner
Posts: 17
Joined: Wed Sep 16, 2015 5:25 pm
ownCloud version: 8.1.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4

Re: Error 404, index.php not found

Postby dathbe » Thu Mar 10, 2016 1:15 am

I can confirm that the fix at GitHub https://github.com/owncloud/core/pull/23029 works with two caveats:

1) changing only .htaccess (leaving setup.php alone) seems to do the trick. I can't determine what the change to setup.php does.

2) the url now seems to include index.html everywhere; e.g., https://host.com/owncloud/index.php/apps/files/ . So the site works, but the url is still a little wonky.

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Error 404, index.php not found

Postby RealRancor » Thu Mar 10, 2016 1:22 am

Please keep the discussion about this issue at the linked issue.
*gone*


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Server 9.0”

Who is online

Users browsing this forum: sosed213 and 2 guests