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

Error - Too Many Redirects #1461

Closed
jmitchell238 opened this issue Nov 26, 2016 · 10 comments
Closed

Error - Too Many Redirects #1461

jmitchell238 opened this issue Nov 26, 2016 · 10 comments

Comments

@jmitchell238
Copy link

jmitchell238 commented Nov 26, 2016

I have been able to successfully remedy the original problem I had with the Setup.php Looping by changing the permissions of the folder and all files to 777.

Now I have a different problem. I can go to the website http://napier.ddns.net or http://192.168.0.13/ on my local machine and I am taken to the Login.php page. Upon logging in with "admin - changeme" I am taken to a page that across all Browsers say "Too many redirects." The page in the address bar is "/CheckVersion.php"

I am running Raspian(Based on Debian) on a Raspberry pi 2. I have everything installed and up to date according to requirements that I can find.

From study I can find many different things that could cause this error. but I can't find anything in the settings or configuration that would cause it. Any Ideas or thoughts on what to look for?

@DawoudIO
Copy link
Contributor

can you tell me your settings so that i can add some error checking logic in the system for such bad setup

@jmitchell238
Copy link
Author

I can DawoudlO, I just need to know what all settings you are needing. I'm still newer to this but if you tell me which settings then I'll be able to get you the information.

@DawoudIO
Copy link
Contributor

in the Include\Config.php please give me the following values

// Root path of your ChurchCRM installation ( THIS MUST BE SET CORRECTLY! )
//
// Examples:
// - if you will be accessing from http://www.yourdomain.com/churchcrm then you would enter '/churchcrm' here.
// - if you will be accessing from http://www.yourdomain.com then you would enter '' ... an empty string for a top level installation.
//
// NOTE:
// - the path SHOULD Start end with slash, if not ''.
// - the path SHOULD NOT end with slash.
// - the is case sensitive.
$sRootPath = '||ROOT_PATH||';

// Set $bLockURL=TRUE to enforce https access by specifying exactly
// which URL's your users may use to log into ChurchCRM.
$bLockURL = FALSE;

// URL[0] is the URL that you prefer most users use when they
// log in.  These are case sensitive.  Only used when $bLockURL = TRUE
$URL[0] = '||URL||';
// List as many other URL's as may be needed. Number them sequentially.
//$URL[1] = 'https://www.mychurch.org/churchcrm/';
//$URL[2] = 'https://www.mychurch.org:8080/churchcrm/';
//$URL[3] = 'https://www.mychurch.org/churchcrm/';
//$URL[4] = 'https://ssl.sharedsslserver.com/mychurch.org/churchcrm/';
//$URL[5] = 'https://crm.mychurch.org/';

@jmitchell238
Copy link
Author

// Root path of your ChurchCRM installation ( THIS MUST BE SET CORRECTLY! )
//
// Examples:
// - if you will be accessing from http://www.yourdomain.com/churchcrm then you would enter '/churchcrm' here.
// - if you will be accessing from http://www.yourdomain.com then you would enter '' ... an empty string for a top level installation.
//
// NOTE:
// - the path SHOULD Start end with slash, if not ''.
// - the path SHOULD NOT end with slash.
// - the is case sensitive.
$sRootPath = '';

// Set $bLockURL=TRUE to enforce https access by specifying exactly
// which URL's your users may use to log into ChurchCRM.
$bLockURL = FALSE;

// URL[0] is the URL that you prefer most users use when they
// log in. These are case sensitive. Only used when $bLockURL = TRUE
$URL[0] = 'http://192.168.0.13/';
// List as many other URL's as may be needed. Number them sequentially.
//$URL[1] = 'https://www.mychurch.org/churchcrm/';
//$URL[2] = 'https://www.mychurch.org:8080/churchcrm/';
//$URL[3] = 'https://www.mychurch.org/churchcrm/';
//$URL[4] = 'https://ssl.sharedsslserver.com/mychurch.org/churchcrm/';
//$URL[5] = 'https://crm.mychurch.org/';

@DawoudIO
Copy link
Contributor

that looks correct... so the software is extracted in a dir that is mapped to "/" on 'http://192.168.0.13'

@jmitchell238
Copy link
Author

Yes, it's extracted into /var/www/html folder.

@DawoudIO
Copy link
Contributor

DawoudIO commented Dec 3, 2016

all that looks good, next question do you have mod rewrite enabled

http://www.orchidbox.com/post.php?title=How_to_enable_mod_rewrite_module_in_apache_in_xampp_wamp

@jmitchell238
Copy link
Author

I was unable to confirm at first because on the Raspberry Pi Linux it doesn't have a httpd.conf file. Instead it uses a apache2.conf file which doesn't have that inside of it.

Long story short I found the coding " sudo a2enmod rewrite " which didn't work.

So I found a site discussing that and in the apache2.conf file theres a few things that say "Allowoverride None". I changed those from "none" to "all" and then used " Sudo a2enmod rewrite " again and then it said "Module rewrite already enabled"

The site still doesn't work however.

@DawoudIO
Copy link
Contributor

as long as $bLockURL = FALSE; we ignore $URL[0] = 'http://192.168.0.13/';

So that only thing that matter for this file is the $sRootPath and ensuring you have mod rewrite working...

@DawoudIO
Copy link
Contributor

DawoudIO commented Jan 1, 2017

no activity closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants