Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in newest owncloud version. #27941

Closed
Ciangi opened this issue May 18, 2017 · 4 comments
Closed

Errors in newest owncloud version. #27941

Ciangi opened this issue May 18, 2017 · 4 comments

Comments

@Ciangi
Copy link

Ciangi commented May 18, 2017

Steps to reproduce

  1. Downloaded new version of owncloud from website http://owncloud.org/install .zip and tried tar.bz2 also.
  2. Set config and try to run owncloud from website.
  3. Got internal server error
  4. Go inside .htaccess file and what i see is:
<IfModule mod_headers.c>
  <IfModule mod_setenvif.c>
    <IfModule mod_fcgid.c>
       SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
       RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
    </IfModule>
    <IfModule mod_lsapi.c>
      SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
      RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
    </IfModule>
    <IfModule mod_proxy_fcgi.c>
       SetEnvIfNoCase Authorization "(.+)" HTTP_AUTHORIZATION=$1
    </IfModule>
  </IfModule>

  <IfModule mod_env.c>
    # Add security and privacy related headers
    Header set X-Content-Type-Options "nosniff"
    Header set X-XSS-Protection "1; mode=block"
    Header set X-Robots-Tag "none"
    Header set X-Frame-Options "SAMEORIGIN"
    Header set X-Download-Options "noopen"
    Header set X-Permitted-Cross-Domain-Policies "none"
    SetEnv modHeadersAvailable true
  </IfModule>

  # Let browsers cache CSS, JS files for half a year
  <FilesMatch "\.(css|js)$">
    Header set Cache-Control "max-age=15778463"
  </FilesMatch>
  
  # Let browsers cache WOFF files for a week
  <FilesMatch "\.woff$">
    Header set Cache-Control "max-age=604800"
  </FilesMatch>
</IfModule>

<IfModule mod_php5.c>
  php_value always_populate_raw_post_data -1
</IfModule>

php_value upload_max_filesize 513M
php_value post_max_size 513M
php_value memory_limit 512M
php_value mbstring.func_overload 0
php_value default_charset 'UTF-8'
php_value output_buffering 0

<IfModule mod_env.c>
  SetEnv htaccessWorking true
</IfModule>

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  RewriteRule ^\.well-known/host-meta /public.php?service=host-meta [QSA,L]
  RewriteRule ^\.well-known/host-meta\.json /public.php?service=host-meta-json [QSA,L]
  RewriteRule ^\.well-known/carddav /remote.php/dav/ [R=301,L]
  RewriteRule ^\.well-known/caldav /remote.php/dav/ [R=301,L]
  RewriteRule ^remote/(.*) remote.php [QSA,L]
  RewriteRule ^(?:build|tests|config|lib|3rdparty|templates)/.* - [R=404,L]
  RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/.*
  RewriteRule ^(?:\.|autotest|occ|issue|indie|db_|console).* - [R=404,L]
</IfModule>
<IfModule mod_mime.c>
  AddType image/svg+xml svg svgz
  AddEncoding gzip svgz
</IfModule>
<IfModule mod_dir.c>
  DirectoryIndex index.php index.html
</IfModule>
AddDefaultCharset utf-8
Options -Indexes
<IfModule pagespeed_module>
  ModPagespeed Off
</IfModule> 

So i changed that file how it should like.

...
<IfModule mod_php5.c>
  php_value always_populate_raw_post_data -1
  php_value upload_max_filesize 513M
  php_value post_max_size 513M
  php_value memory_limit 512M
  php_value mbstring.func_overload 0
  php_value default_charset 'UTF-8'
  php_value output_buffering 0

  <IfModule mod_env.c>
    SetEnv htaccessWorking true
  </IfModule>
</IfModule>
...

and got error of hash....

Array
(
    [core] => Array
        (
            [INVALID_HASH] => Array
                (
                    [.htaccess] => Array
                        (
                            [expected] => 314e4e893220f5cbd7f57c8dfd5e72c9cf9cd6696beecda47d0906478fe35a02608173757189dd10bb56015a0a077dc40eea5f5d2a9561b87464aa9a7c6fa52e
                            [current] => f8be77bbdf40bb86d4b738e5120401045276db4cc5d565e33d73700f8132cbe98fb07e9d7f88d40d1af31c86b5f45686f91a540499c569774a37ed219b455b5f
                        )

                )

        )

)

Expected behaviour

Working owncloud normally.

Actual behaviour

A lot of errors including no internet connection...

Server configuration

Operating system: something of QNAP

Web server: Apache

Database: MySQL

PHP version: 5.6.30

ownCloud version: 10.0.0.12

Updated from an older ownCloud or fresh install: fresh install

Where did you install ownCloud from: http://owncloud.org/install

@ghost
Copy link

ghost commented May 18, 2017

@Ciangi This is a duplicate of #27892, #27891, #27553 and is already fixed with #27748

The upcoming oC 10.0.1 will include this fix.

However you should note that your installation can break at any time like seen here (or even show additional issues) if you don't use one of the following combinations:

  • Apache + mod_php (officially supported and the only setup where ownCloud is tested with)
  • nginx + php-fpm (community supported, few developers are using that one)

where this issue won't show up at all.

@Ciangi
Copy link
Author

Ciangi commented May 18, 2017

How to check if i am using Apache + mod_php ?

@ghost
Copy link

ghost commented May 18, 2017

You don't need to check this as the error wouldn't show up if you're using this combination.

I think you can close this. Please use http://central.owncloud.org/ for further support questions (like the one above). You can login with your github login there.

@lock
Copy link

lock bot commented Aug 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants