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

login page not found #1387

Closed
chewinga opened this issue Nov 17, 2016 · 5 comments
Closed

login page not found #1387

chewinga opened this issue Nov 17, 2016 · 5 comments

Comments

@chewinga
Copy link

After Setup i was redirected to crm.boonvillechurch.com/login and I got this.

_Not Found

The requested URL /login was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request._

however if i manually type in crm.boonvillechurch.com/Login.php i get a login page, but I don't have a login yet? Did I configure something wrong? -I am setup in dreamhost on a subdomain and using chrome.

@DawoudIO
Copy link
Contributor

what version of php are you running, you also need to have Mod-Rewite enabled

@DawoudIO
Copy link
Contributor

DawoudIO commented Feb 6, 2017

no activity in a while... closing

@andrep0350
Copy link

andrep0350 commented May 23, 2017

After setup script, where the entire list was 'green' including PHP7.0, I get the exact same issue as described above. I confirm the database tables have all be created. Installation details are:
Ubuntu 16.04.2 LTS with Apache2
url: https://mail.liberdale.co.za/churchcrm/login
Apache2 has the following rules, which can't be changed:

  1. for port 80:
RewriteEngine on
RewriteCond %{SERVER_NAME} =mail.liberdale.co.za
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
  1. for port 334
ServerName mail.liberdale.co.za
DocumentRoot /var/www/html

Include/Config.php file as follows:

$sRootPath = '/churchcrm';
$URL[0] = 'https://mail.liberdale.co.za/';

.htaccess

RewriteEngine On

# Some hosts may require you to use the `RewriteBase` directive.
# If you need to use the `RewriteBase` directive, it should be the
# absolute physical path to the directory that contains this htaccess file.
#
#RewriteBase /var/www/html/churchcrm/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]

<IfModule mod_php5.c>
    php_value short_open_tag On
</IfModule>

I pointed the browser to https://mail.liberdale.co.za/churchcrm/ and received the following message:
Error message: The requested URL /churchcrm/login was not found on this server.

I would appreciate some help. Everything I tried (including editing .htaccess and adding "RewriteBase /var/www/html/churchcrm/") did not work and reports too many redirects and lands on the http://mail.liberdale.co.za/churchcrm/".

We are trying to evaluate the application on an existing server. Thanks again.

EDIT
Made the following changes to the .htaccess file and then pointed to https://mail.liberdale.co.za/churchcrm/Login.php and it works!

#RewriteEngine On
RewriteEngine Off

#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^(.*)$ index.php [QSA,L]

php_value short_open_tag On
<IfModule mod_php5.c>
    php_value short_open_tag On
</IfModule>

@crossan007 crossan007 reopened this May 23, 2017
@crossan007 crossan007 modified the milestone: Backlog Jul 14, 2017
@JialuZhang
Copy link

@andrep0350

In your posted configuration, the line: "RewriteEngine Off" is a misconfiguration, and adding it to your system will not change any system behavior.
Why "RewriteEngine Off" is allowed by Apache is that, if you include multiple "RewriteRule" parameters in your configuration, then instead of commenting them all, you can explicitly using “RewriteEngine Off” to disable all "RewriteRule".

More importantly, the default value of “RewriteEngine" is already an "off", so adding “RewriteEngine Off" is quite unnecessary and may cause confusion to users.

Since herein there is no "RewriteRule", deleting “RewriteEngine Off” would be ideal.

Related Apache source code snippet:

run_rewritemap_programs(server_rec *s , apr_pool_t *p){
if (conf->state == ENGINE_DISABLED) { // usage of "RewriteEngine"
  return APR_SUCCESS; // early return
rewritemap_program(...); // usage of "RewriteRule" 
}

@DawoudIO
Copy link
Contributor

Things are looking find in 5.0.0 please reopen if there is an issue

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

5 participants