Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Adz. on January 12, 2017, 12:14:11 PM

Title: ERR_TOO_MANY_REDIRECTS Lighttpd
Post by: Adz. on January 12, 2017, 12:14:11 PM
Hello everyone,

Not sure but on fresh installation, i can't seem to load the page.
Here's the errors i'm getting on my lighttpd


(mod_fastcgi.c.2673) FastCGI-stderr: PHP message: PHP Warning:  file_put_contents(/var/www/public_html/smf/db_last_error.php): failed to open stream: Permission denied in /var/www/public_html/smf/Settings.php on line 195
Title: Re: ERR_TOO_MANY_REDIRECTS Lighttpd
Post by: Illori on January 12, 2017, 12:18:22 PM
Are you using SMF 2.0 or SMF 2.1?
Title: Re: ERR_TOO_MANY_REDIRECTS Lighttpd
Post by: Adz. on January 12, 2017, 12:19:44 PM
SMF 2.1, might have posted in the wrong board. Please move it.
Title: Re: ERR_TOO_MANY_REDIRECTS Lighttpd
Post by: Adz. on January 12, 2017, 12:34:12 PM
I used repair settings file to properly configure the server but that doesn't help much, the log files in lighttpd still showing constantly
Title: Re: ERR_TOO_MANY_REDIRECTS Lighttpd
Post by: LiroyvH on January 12, 2017, 12:35:48 PM
The error says permission denied, so did you fix permissions?
Also check contents of htaccess.
Title: Re: ERR_TOO_MANY_REDIRECTS Lighttpd
Post by: Adz. on January 12, 2017, 12:37:35 PM
I don't have htaccess file. I checked the permissions already. So should i go for 0777?
Title: Re: ERR_TOO_MANY_REDIRECTS Lighttpd
Post by: tinoest on January 13, 2017, 09:11:32 AM
Quote from: Adzkii on January 12, 2017, 12:37:35 PM
I don't have htaccess file. I checked the permissions already. So should i go for 0777?

Either 777 or change the owner to the same as your web server application. On Debian and most of its derivatives thats

chown www-data:www-data db_last_error.php
Title: Re: ERR_TOO_MANY_REDIRECTS Lighttpd
Post by: Adz. on January 13, 2017, 10:25:09 AM
I don't think it's the permission problem. Upon installation i may have enabled Force SSL throughout forum option, that may have triggered the too many redirects error. Is there any way i could uncheck this option in the files? I can't seem to find it in the settings.php file.

Cheers
Title: Re: ERR_TOO_MANY_REDIRECTS Lighttpd
Post by: Adz. on January 13, 2017, 06:58:04 PM
bump
Title: Re: ERR_TOO_MANY_REDIRECTS Lighttpd
Post by: d3vcho on January 14, 2017, 04:24:33 AM
Don't bump your topic within 24 hours... Remember we're all volunteers here.

Are you using latest GitHub build of SMF 2.1? Or what 2.1 version are you using? Give us some more details...
Title: Re: ERR_TOO_MANY_REDIRECTS Lighttpd
Post by: Adz. on January 14, 2017, 08:21:18 AM
when i enabled the option force ssl, no can access the forums because it shows too many redirects error. how can i turn of the option in the ftp?
Title: Re: ERR_TOO_MANY_REDIRECTS Lighttpd
Post by: tinoest on January 14, 2017, 02:05:45 PM
Did you sort the db_last_error issue?

Also you can't, you need to change it in the database.

What version of SMF 2.1 are you using? Is it the latest copy from GitHub?
Title: Re: ERR_TOO_MANY_REDIRECTS Lighttpd
Post by: Adz. on January 14, 2017, 05:25:15 PM
Quote from: tinoest on January 14, 2017, 02:05:45 PM
Did you sort the db_last_error issue?

Also you can't, you need to change it in the database.

What version of SMF 2.1 are you using? Is it the latest copy from GitHub?

If the option is in the database, which table is it to change the force SSL? I can't seem to find it.
I'm using the most latest version of the 2.1 beta software found in the download page above, didn't download it from github.

Cheers.
Title: Re: ERR_TOO_MANY_REDIRECTS Lighttpd
Post by: Arantor on January 14, 2017, 06:21:26 PM
You should probably use the version from Github, it's about a year newer and has a lot of bugs fixed.
Title: Re: ERR_TOO_MANY_REDIRECTS Lighttpd
Post by: Adz. on January 14, 2017, 06:28:54 PM
Thank you, i'll check it out!
Title: Re: ERR_TOO_MANY_REDIRECTS Lighttpd
Post by: Adz. on January 14, 2017, 06:35:07 PM
btw how would the github version work? It hasn't got an installation file in it. Do i just install it on 2.1?
Title: Re: ERR_TOO_MANY_REDIRECTS Lighttpd
Post by: Kindred on January 14, 2017, 06:40:17 PM
Did you read the sticky post at the top of this board?
Title: Re: ERR_TOO_MANY_REDIRECTS Lighttpd
Post by: Adz. on January 14, 2017, 06:44:06 PM
Manage to get it install, of course i've read it. Just wanted to clear it out.

To Others: Just move the files from "other" folder to the root of your smf directory.
Title: Re: ERR_TOO_MANY_REDIRECTS Lighttpd
Post by: Kindred on January 14, 2017, 06:51:00 PM
Yup... that's what the instructions say to do...  :)