Troubleshooting
From Habari Project
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" 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.
