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

mod_rewrite not working? #1122

Closed
CCPeterE opened this issue Oct 11, 2016 · 14 comments
Closed

mod_rewrite not working? #1122

CCPeterE opened this issue Oct 11, 2016 · 14 comments

Comments

@CCPeterE
Copy link

ChurchCRM v2.2.2
Apache Linux shared hosting
MySQL v5.5.48
PhP v5.6

New UK instal. Setup.php indicates mod_rewrite isn't enabled but host (Namesco.co.uk) says it is and a test script within a modified .htaccess gives this result: "mod_rewrite is working! You used the path /churchcrm/ to request this page" - both modified and standard .htaccess (from ChurchCRM files) have RewriteEngine On.

Ignoring Setup warning and continuing with the instal, Admin password change etc. gives main ChurchCRM home page but no menu selections work and many give an HTTP 500 error: "The www.churchname.org.uk page isn’t working, www.churchname.org.uk is currently unable to handle this request. HTTP ERROR 500"

I'm pretty sure this is a mod_rewrite issue, fresh instals with a new db give the same result. I have not installed ChurchCRM on this host before but have had various versions of it (and ChurchInfo) running on a different host without issues whilst we evaluated it.

Grateful for advice!

Many thanks

@DawoudIO
Copy link
Contributor

Can you give an example of the 500 errors you are getting. also please ensure that you download the relase zip file not the source code.

@CCPeterE
Copy link
Author

Many thanks, same but uninformative error for all '500s here, this one produced by clicking on the cart:
Http 500 error chrome.pdf
Http 500 error IE.pdf
Release zipfile came from here: https://github.com/ChurchCRM/CRM/releases/tag/2.2.2
Logging is enabled in the config file:-
error_reporting(E_ALL);
// Rather than display errors on the screen it is more secure to
// send error messages to a file. Make sure that your web
// server has permission to write to this file.
// Warning: The error_log file can grow very large over time.
ini_set('log_errors', 1);
ini_set('error_log','/logs/ChurchCRM.log');
but no log file...
Would you like me to PM you with the URL and login? This ChurchCRM is a test instance so the db is empty - no personal data.
Thanks...

@CCPeterE CCPeterE reopened this Oct 11, 2016
@CCPeterE
Copy link
Author

Still unable to get this working even though mod_rewrite is enabled on the Apache server, fails the setup script Mod Rewrite test (see image) - help please!
setup php

@Jimboer
Copy link

Jimboer commented Jan 31, 2017

I have the same kind of problem on churchcrm/IntegrityCheck.php

image

RewriteEngine is on and working when i test it.

@Jimboer
Copy link

Jimboer commented Jan 31, 2017

Platform Information Linux server34.hosting2go.nl 2.6.27.29.super #2 SMP Wed Jun 15 10:55:31 CEST 2016 i686
PHP Version 7.0.7
ChurchCRM Version 2.5.2
Reporting Browser Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Prerequisite Status Missing Prerequisites: ["Mod Rewrite"]
Integrity check status {"status":"success"}

@CCPeterE
Copy link
Author

This is still an issue for me, I am unable to get ChurchCRM working because of this on my chosen host; as before no menu selections work and many give an HTTP 500 error: "The www.churchname.org.uk page isn’t working, www.churchname.org.uk is currently unable to handle this request. HTTP ERROR 500"

@Jimboer
Copy link

Jimboer commented Jan 31, 2017

I dont have the issue with error 500, only this warning. Churchcrm is working good.

@DawoudIO
Copy link
Contributor

500 errors tend to be due to file perm make sure it is 755 and owned by the correct system...

see http://docs.churchcrm.io/en/latest/Installation/CentOS7/

@CCPeterE
Copy link
Author

CCPeterE commented Feb 6, 2017

Yes, that was the problem - odd as I'd already changed the perms to 755 before but, I suspect that I had missed some files or goofed, no matter working fine now.
Many thanks for your help!

@wintech12
Copy link

I have the same issue as Jimboer. The "Mod rewrite" failed during initial Setup Wizard but the site is working after completely setup. My site has the same screenshot that unmet prerequisites that mod_rewrite failed but integrity check passed. I have confirmed that .htaccess (from ChurchCRM files) have RewriteEngine On on the first line.

I am running the latest version 2.10.1 but still have this issue. What is solution to this issue?

@mukengami
Copy link

church crm setup

Hello there i have been trying to install ChurchCRM for two days , but i still cannot find the solution to the this Mod Rewrite on Installation Stage . if there is any one with the solution please send the mail to me at [email protected]

@DawoudIO
Copy link
Contributor

@mukengami please contact your hosting provider for support as it is hard for us to debug if you are on a shared hosted system

@mukengami
Copy link

Hello there , its not a shared system sir. we are trying to install it on the local CentOS 7 with PHP 7.2 , we want to set it up so that we can teach the users before going live. but now i am stack on the installation stage . any help will be very grateful. Thank you .

@DawoudIO
Copy link
Contributor

Please start a new issue for this . That said please see https://github.com/ChurchCRM/CRM/blob/master/install/CentOS7.sh

@crossan007 crossan007 added this to the User Support milestone Mar 16, 2018
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

6 participants