Troubleshooting

From Habari Project

Jump to: navigation, search

Contents

Apache Log Common Errors

"File does not exist: /var/www/habari/ajax, referer: http://localhost/habari/"
You need to enable .htaccess and make sure you have mod_rewrite loaded. (see below)
"Invalid URI in request POST /habari/ajax/check_mysql_credentials HTTP/1.1, referer: http://localhost/habari/
If you have Habari installed in an alias '/habari', add "RewriteBase /habari/" to your .htaccess file.

AJAX Error

"You might want to make sure mod_rewrite is enabled and that AllowOverride is at least set to FileInfo for the directory where .htaccess resides."
If you have Habari installed in an alias '/habari', add "RewriteBase /habari/" to your .htaccess file.

How do I enable .htaccess?

  • Add "AllowOverride FileInfo Limit" in your Apache2 virtual host configuration file. By default, AllowOverride is set to "None".

My Apache log has an error related to RewriteEngine not being allowed in .htaccess, why?

This means you have not enabled the mod_rewrite module.

  • Create a symlink in the mods-enabled directory. ln -s ../mods-available/rewrite.load rewrite.load
    • Debian and Ubuntu users can execute: sudo a2enmod rewrite
  • Restart Apache2:
    • Debian and Ubuntu users: /etc/init.d/apache2 reload
    • RedHat, Fedora, and CentOS users: /etc/init.d/httpd reload

Install page does not show all Installation Settings

Check your logs for an "Invalid URI in request POST" error. See "Apache Log Common Errors" for fix details.

I keep getting logged out of the admin every / every few page loads. What's up?

The default Habari session security settings are probably too restrictive for your network configuration. While Habari ensures that a given user can login from the same subnet reliably, you may still have problems either getting or maintaining a login to your admin if your computer is behind a load balancer or otherwise has multiple paths to the internet (common in many larger companies).

If you believe you may be suffering from this issue, there's a quick fix: simply disable the session subnet checks by adding the following line to your config.php:

define( 'SESSION_SKIP_SUBNET', true );

Because it adds an additional layer of security, please be sure to remove this line if it fails to solve your issue.

I can't login. I keep getting the login page over and over, even when I put in the correct password!

Habari may be unable to start a session. Check your php.ini for the session.cookie-secure setting. Make sure it is set to 0. Then restart your http server.

  • To restart Apache2:
    • Debian and Ubuntu users: /etc/init.d/apache2 reload
    • RedHat, Fedora, and CentOS users: /etc/init.d/httpd reload
Personal tools