Strange behaviour of serendipity_admin.php

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
nuTux
Regular
Posts: 21
Joined: Sat Jun 08, 2013 11:35 pm

Strange behaviour of serendipity_admin.php

Post by nuTux »

Hi community

I've got a strange behaviour with my serendipity_admin.php

I can edit in all the sections of my backend, save and it works.
Except! for the Anti-Spam settings
If I change something there and want to save it i get this:

Code: Select all

You don't have permission to access /serendipity_admin.php on this server.

Thx for your help
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: Strange behaviour of serendipity_admin.php

Post by kleinerChemiker »

Please also ask your provider. This could be a malfunction of some security plugin for PHP.
nuTux
Regular
Posts: 21
Joined: Sat Jun 08, 2013 11:35 pm

Re: Strange behaviour of serendipity_admin.php

Post by nuTux »

I will do so, but i thought its a problem with serendipity, because it only apperas when I want to save this Anti-Spam-Settings
all the other stuff works, lilke templates, new articles, etc
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: Strange behaviour of serendipity_admin.php

Post by kleinerChemiker »

That's why my first guess is, that it's an overactive securtiy plugin of PHP.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Strange behaviour of serendipity_admin.php

Post by garvinhicking »

Definitely.

mod_security watches every HTTP POST/GET input made to a server. If it detects "malicious" strings, it will stall the execution and kill the process, thus reporting a white/blank page or a HTTP error status code.

When you save the spamconfig, you submit strings that are often regarded as spam (of course, that's the point of saving those strings). However, by submitting them, you trigger the same blocking means.

This can only be circumvented by mod_Security being whitelisted for this type of request, or configured less intrusive on just posting keywords.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
nuTux
Regular
Posts: 21
Joined: Sat Jun 08, 2013 11:35 pm

Re: Strange behaviour of serendipity_admin.php

Post by nuTux »

Thank you

I had a chat with my hoster and he told me, thers a line in the .htaccess file wich is corrupting...

Code: Select all

Options -MultiViews
So I always have to comment this line.. But for what is this line?
Is it important? Can I disable it?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Strange behaviour of serendipity_admin.php

Post by garvinhicking »

Hi!

This is actually also a security option to prevent people calling files like "evilfile.php.txt" that would be interpreted as PHP otherwise.

I don't think this variable should be responsible, because then EVERY page of yours wouldn't work, not just that one page saving the configuration.

Does everything work when you disable that line in .htaccess?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
nuTux
Regular
Posts: 21
Joined: Sat Jun 08, 2013 11:35 pm

Re: Strange behaviour of serendipity_admin.php

Post by nuTux »

Yes if i have coment this line out, then it all works fine.
Post Reply