Page 1 of 1

406 Error on Installation Attempt

Posted: Mon Sep 26, 2005 8:36 pm
by darrellb
Trying to install a plug-in using SPARTACUS (Post via XML-RPC) results in the following error page message:

Code: Select all

An appropriate representation of the requested resource /serendipity_admin.php could not be found on this server.


While I haven't tested every single one, this doesn't happen with every plug-in.

Is this error message actually connected to Serendipity or to my server set-up?

Thank you for your help.

DarrellB

Re: 406 Error on Installation Attempt

Posted: Mon Sep 26, 2005 8:40 pm
by garvinhicking
It comes from your server setup; haven't seen that kind of message before! What kind of server are you using? Maybe using mod_security?

Regards
Garvin

Posted: Mon Sep 26, 2005 8:55 pm
by darrellb
And I hadn't seen this message before a couple of days ago :)

My phpinfo file tells me that the module mod_security is loaded (http://www.darrellbuchanan.ca/phpinfo.php).

If that is the problem, can I disable that through my .htaccess file?

Thanks for your prompt reply and assistance!

DarrellB

Posted: Mon Sep 26, 2005 9:53 pm
by garvinhicking
I'm sorry, I don't use mod_security on my own, so I don't know how to disable it. But it''s most likely the root of your problems!

Regards,
Garvin

Posted: Mon Sep 26, 2005 10:01 pm
by Guest
Well, I found some advice on disabling mod_security in the .htaccess file here:
http://www.urbangiraffe.com/2005/08/20/mysterious-406-error/

Added the suggested lines to my htaccess file and I was able to load the plug-in, so that appears to have been the problem.

Need to do more reading on the possible consequences of my actions :)

Thanks for pointing me in the right direction.

DarrellB

Posted: Mon Sep 26, 2005 10:02 pm
by darrellb
Sorry, the last post was from me.

Forgot to log-in.

DarrellB

Re: 406 Error on Installation Attempt

Posted: Wed Jan 22, 2014 1:30 pm
by Huhu
By the way, Godaddy as a hoster gives the same error message when installing s9y via Expert (oddly not via Simple) installation, and when trying to change settings in the Configuration (like the blogs name).
I will just edit the files themselves, but it would be interesting to hear if anyone knows the reasons for this ...

Code: Select all

Not Acceptable An appropriate representation of the requested resource /serendipity_admin.php could not be found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Re: 406 Error on Installation Attempt

Posted: Wed Jan 22, 2014 5:26 pm
by yellowled
Huhu wrote:I will just edit the files themselves, but it would be interesting to hear if anyone knows the reasons for this ...
I'm not a 100% positive it's still that way, but GoDaddy's “one click installations” of s9y used to be very different from out core distribution which is why most support requests for those installations should be routed to GoDaddy.

YL

Re: 406 Error on Installation Attempt

Posted: Wed Jan 22, 2014 8:40 pm
by Huhu
yellowled wrote:I'm not a 100% positive it's still that way, but GoDaddy's “one click installations”
Of course I sticked to the oldschool "upload current version via FTP"-installation routine :)
I have also filed a support request to them because it is almost cvertainly their fault, it would just be interesting to hear if someone has an explanation for that. So I am posting here purely out of interest. Had installed s9y many times and never hit such a message -- with other providers.

Re: 406 Error on Installation Attempt

Posted: Thu Jan 23, 2014 9:49 am
by Timbalu
Is that a 406 error?

Ask your host if they have mod_security enabled and if it's possible to disable it on a per-directory basis. Or at least set it to a state where you can turn it off by yourself.

Like this

Code: Select all

<ifModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
</ifModule>
in your .htaccess
Or added to the mod_rewrite section like this, eg.

Code: Select all

<files serendipity_admin.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    SecFilterInheritance Off
</files>
RewriteEngine On
...

Re: 406 Error on Installation Attempt

Posted: Thu Jan 23, 2014 10:02 am
by Huhu
Thanks, I have tried both. The first doesn't seem to do the trick, the other just throws an Internal Server Error. I hope godaddy support is, well, worth its salt ...
Hopefully the error is restricted to the admin.php, where one-time editing the table data wouldn't be a problem. I will also look through other possibilities through htaccess.

Re: 406 Error on Installation Attempt

Posted: Thu Jan 23, 2014 10:36 am
by Timbalu
As I said - ask you host...

Else play around with it (adding a / to the filename or check other SecFilter sets too), before the serendipity (and mod_rewrite) rules, and better use this eg.

Code: Select all

<ifModule mod_security.c>
    <files serendipity_admin.php>
        SecFilterEngine Off
        SecFilterScanPOST Off
        SecFilterInheritance Off
    </files>
</ifModule>
since I just copied this as an example, without having personal experiences with mod_sec.

Re: 406 Error on Installation Attempt

Posted: Sat Jan 25, 2014 3:03 pm
by Timbalu
Did you already read this?
http://board.s9y.org/viewtopic.php?f=1& ... #p10435824
The example with SecRuleRemoveByID might help too.

Re: 406 Error on Installation Attempt

Posted: Tue Jan 28, 2014 1:09 pm
by Huhu
Thanks, I will read through that!