Loading...
 
Skip to main content

Architecture / Installation


Forbidden Error Resolved!

I hope this helps some folks:

I posted a question about this months ago but could never get a good answer. I had recently upgraded Tikiwiki via Fantastico and ever since, no one could edit pages in my wiki. When you would edit a page and click "save" you would get "Forbidden You don't have authorization to access (page)" I checked and double checked all of the file permissions and they were all good. Then I tried turning off SecFilterEngine by putting "SecFilterEngine Off" in my .htaccess file in the Tikiwiki directory. Viola! Now I could edit pages and save them! So this told me the issue was in the Apache Mod_Security rules. I found my modsecurity.conf file, which in my case was located in /etc/httpd/conf and commented out the offending filter item, which turned out to be SecFilter "&rows=2". I determined which pattern match was causing the problem by looking in the "audit_log" file which for me was located in /etc/httpd/logs directory. I simply did a wiki edit to cause the problem, then searched the audit log for 25/May/2008 (today's date) and saw what pattern match was causing the issue.

So, all I did to fix it was to use # to comment out SecFiler "&rows=2" in the modsecurity.conf file, then restarted my server (Apache apparently needs to be restarted for changes to modsecurity.conf to take affect). Since commenting that line out, my Tikiwiki has been working fine. Hope this helps some who may be having a similar issue.

Cy