fossar / selfoss

multipurpose rss reader, live stream, mashup, aggregation web application
https://selfoss.aditu.de
GNU General Public License v3.0
2.36k stars 343 forks source link

Error 500 on a Uberspace setup #549

Closed ghost closed 9 years ago

ghost commented 10 years ago

Hello, I tried to install selfoss on a uberspace - but it does not work.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, hallo@uberspace.de and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log. 

I found out that the .htaccess is the reason - especially the following lines.

RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule !.(js|ico|gif|jpg|png|css|asc|txt|eot|woff|ttf|ttf|svg)$ index.php?%1

So there is something wrong with these lines, but I didn't know what ^^

Kind regards from Germany, Julian

Weishaupt commented 10 years ago

I use selfoss on Uberspace, too. It is working for me.

It would be of help to know, what you error log says. A 500 can occur for many reasons.

sar3th commented 10 years ago

Information about setting up an error log on uberspace can be found here: https://wiki.uberspace.de/webserver:error_log As Weishaupt said, HTTP 500 could be caused by plenty of things, so information from the error log is vitally important to diagnose the problem :)

ghost commented 10 years ago

Okay, the error log returns the following error:

[Mon Sep 08 12:19:34 2014] [error] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
Weishaupt commented 9 years ago

This seems to me like an .htaccess misconfiguration. What are the exact steps you took installing selfoss?

heubergen commented 9 years ago

I can also confirm the bug, I have also a uberspace account.

I think the problem have to be in the following lines:

Enable rewrite engine and route requests to framework

RewriteEngine On

RewriteBase /selfoss

If I uncomment that lines, I can see the login-mask.

heubergen commented 9 years ago

Bug FIX!!!

Please follow the instructions: 1) unzip the .zip file in the subfolder selfoss. (eg. /var/www/virtual/USERNAME/DOMAIN/selfoss) 2) rename the defaults.ini to config.ini 3) activ the line: #RewriteBase /selfoss (rename to RewriteBase /selfoss) All credits goes to @mritzmann

Weishaupt commented 9 years ago

@jlnostr @SSilence I guess this can be closed?

ghost commented 9 years ago

Thanks @heubergen and @mritzmann - this solved the problem.

Just in addition for users that want to install selfoss under a subdomain (e.g. /var/www/virtual/USERNAME/SUBDOMAIN.DOMAIN.TLD/) Change the line #RewriteBase /selfoss to RewriteBase / :-)

cblte commented 4 years ago

Thanks @heubergen and @mritzmann - this solved the problem.

Just in addition for users that want to install selfoss under a subdomain (e.g. /var/www/virtual/USERNAME/SUBDOMAIN.DOMAIN.TLD/) Change the line #RewriteBase /selfoss to RewriteBase / :-)

Thank you very much!