After upgrading to 3.0, i got a 500 error on several requests. Error log:
[alert] [client ip] /path/plugins/.htaccess: Options not allowed here, referer: http://piwik-base-url.de/
In aforementioned file, the last line reads
Options -Indexes
Commenting it out solves the issue, but, as stated in the file, the .htaccess is autogenerated by piwik and so it is no long term solution. what can i do to make sure future updates do not crash my installation?
1 Like
matthieu
(Matthieu Aubry)
December 19, 2016, 9:45am
#2
Hello @hans-spiess
Can you please create bug report @ Issues · piwik/piwik · GitHub and we will investigate a fix for the future version to prevent this problem.
Thanks for this!
benbois
(Benjamin Bois)
December 19, 2016, 10:17am
#3
In my case, I had to remove the Options -Indexes
line to get piwik 3.0 to work (after upgrade)
1 Like
Had the same problem and reinstalled three times after i came up with your solution. Thanks and hope this will be fixed in the next update.
matthieu
(Matthieu Aubry)
December 27, 2016, 9:22am
#5
Hello
can you please upgrade to 3.0.1-b1 where this should be fixed?
http://piwik.org/faq/how-to-update/faq_159/
Hi @all , @matthieu ,
i’ve added some comments to the issue at
opened 09:59AM - 19 Dec 16 UTC
closed 03:07AM - 27 Dec 16 UTC
Bug
Afterr upgrading to Piwik 3.0.0 i had the following issues:
```
[Mon Dec 19 … 07:44:46 2016] [alert] [client 88.71.80.126] /data/<docroot>**/piwik/libs/.htaccess: AddHandler not allowed here**, referer: https://piwik.domain.de/index.php?module=CoreUpdater&action=newVersionAvailable
and the next one:
[Mon Dec 19 07:48:42 2016] [alert] [client 88.71.80.126] /data/<docroot>**/piwik/plugins/.htaccess: Options not allowed here**, referer: https://piwik.domain.de/index.php?module=MultiSites&action=index&idSite=1&period=day&date=today
```
I have a Debian Wheezy and a Apache
```
Server version: Apache/2.2.22 (Debian)
Server built: Jul 20 2016 05:07:11
```
As figured out from another one (https://forum.piwik.org/t/internal-server-error-after-upgrade-to-3-0/22163) The Issue is gone, while i comment out the Options Line.
<docroot>/piwik/plugins/.htaccess:
```
<IfModule !mod_version.c>
<IfModule !mod_authz_core.c>
Order Allow,Deny
Allow from All
</IfModule>
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
</IfModule>
</Files>
**#Options -Indexes**
```
The AddHandler Issue i couldn't solve at this point!
<docroot>/piwik/libs/.htaccess:
```
# Serve HTML files as text/html mime type - Note: requires mod_mime apache module!
<IfModule mod_mime.c>
** AddHandler text/html .html **
** AddHandler text/html .htm **
</IfModule>
```
Thank you all very much for your great job with piwik!
Kind regards,
Axel
and i’ve explained how you could change your vhost configuration to solve this issue.
Kind regards,
Axel