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
htaccess error: Invalid command 'Deny', perhaps misspelled or defined by a module not included in the server configuration #4941
Comments
Attachment: Screenshot |
I apologize. I made a typo. I changed
to
|
Thanks for the report, if it's a quick fix we should definitely do it! |
Matt where is the latest beta? Is it just the master branch on Github? |
master branch is OK, otherwise see: http://piwik.org/faq/how-to-update/faq_159/ |
Link to all versions is http://builds.piwik.org/ Matt I plan to update manually from 1.12 to latest beta (piwik-2.2.0-b18.tar.gz at the moment). Anything not written somewhere I should know about ? Got 6 GB DB to update and yes, I read http://piwik.org/docs/update/#the-manual-three-step-update Dali |
Matt, I've downloaded the new beta and tried it out and I'm still getting the same errors. The documentation for upgrading from Apache 2.2. to 2.4 is here: http://httpd.apache.org/docs/2.4/upgrading.html. I'm pretty sure you cannot have both Allow/Deny and Require in the same block because if the user is using 2.4 then the Allow/Deny will continue to cause a failure. Additionally I believe Satisfy is deprecated in Apache 2.2. I've gone through the .htaccess file and tried reconfiguring it to handle these changes. This syntax is working for me but I dont know if I could it is 100% compatible with pre 2.4 apache versions because I have no way of testing this.
|
See related/possibly same issue #4499 |
In 6e83e22: Refs #4499 #4941 Adding <IfModule !mod_authz_host.c> around the Satisfy any which may fix the issue. To test run the following command in the piwik directory: rm js/.htaccess plugins/.htaccess core/.htaccess libs/.htaccess vendor/.htaccess misc/user/.htaccess
|
….c> around the Satisfy any which may fix the issue. To test run the following command in the piwik directory: ``` rm js/.htaccess plugins/.htaccess core/.htaccess libs/.htaccess vendor/.htaccess misc/user/.htaccess ``` (this deletes all current htaccess files) Then visit the System check page (this re-creates the .htaccess files) Then browse Piwik -> is it working fine? If not, check your error log and please paste error as a comment in the ticket.
Not reported since improvements made in https://github.com/piwik/piwik/blob/master/plugins/Installation/ServerFilesGenerator.php, works |
hey guys i have the same issue but with my django app so what should i do please help
it worked at night first and then in the morning it wasn't working and giving the error "/home/dasawork/public_html/test/.htaccess: Invalid command 'PassengerAppRoot', perhaps misspelled or defined by a module not included in the server configuration". hosting providers changed my root dir name! like when it worked it was "'/newhome/dasawork/...." but on the morning it was changed to "/home/dasawork/..." so can this cause the problem ? |
I am installing Piwik 2.1.0. My servers error log file is getting a bunch of errors. When I go to the starting url the page loads only text with no formatting and the following errors are written to my log. I have attached a screen shot of the Piwik page showing the problem. Am I doing something incorrect in my installation or is there a bug in the Piwik code?
= Notes
= Error Log Output
I truncated the actual log output because it wouldnt let me submit the ticket with that many urls since it thought it was spam.
= Installation Procedure
= Server Configuration
OS: RHEL 6.4
PHP: 5.5.10
Apache: 2.4.7
MySQL Client: 5.0.11
Loaded Modules:
= My Fix
The errors are complaining about modules not being included. From research it seems that the "Deny", "Allow", and "Satisfy" commands in the htaccess file in the <IfModule mod_authz_host.c> blocks are deprecated in apache 2.4.
In the piwik/libs/.htaccess file and the piwik/plugins/.htaccess file I changed
to
and I changed
to
and I changed
to
After changing these files I set the permissions to read only for user, group, and other. Now when I run the application it works ok and there are no errors in my log file.
The text was updated successfully, but these errors were encountered: