406 Error on Installation Attempt

Creating and modifying plugins.
Post Reply
darrellb
Posts: 3
Joined: Mon Sep 26, 2005 8:29 pm
Location: Ontario, Canada
Contact:

406 Error on Installation Attempt

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: 406 Error on Installation Attempt

Post 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
# 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/
darrellb
Posts: 3
Joined: Mon Sep 26, 2005 8:29 pm
Location: Ontario, Canada
Contact:

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
Guest

Post by Guest »

Well, I found some advice on disabling mod_security in the .htaccess file here:
http://www.urbangiraffe.com/2005/08/20/ ... 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
darrellb
Posts: 3
Joined: Mon Sep 26, 2005 8:29 pm
Location: Ontario, Canada
Contact:

Post by darrellb »

Sorry, the last post was from me.

Forgot to log-in.

DarrellB
Huhu
Regular
Posts: 157
Joined: Tue Oct 04, 2011 3:22 pm

Re: 406 Error on Installation Attempt

Post 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.
Post-apocalyptic Jugger sports: What is Jugger? Video I Free ebook on the sport
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: 406 Error on Installation Attempt

Post 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
Huhu
Regular
Posts: 157
Joined: Tue Oct 04, 2011 3:22 pm

Re: 406 Error on Installation Attempt

Post 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.
Post-apocalyptic Jugger sports: What is Jugger? Video I Free ebook on the sport
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: 406 Error on Installation Attempt

Post 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
...
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Huhu
Regular
Posts: 157
Joined: Tue Oct 04, 2011 3:22 pm

Re: 406 Error on Installation Attempt

Post 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.
Post-apocalyptic Jugger sports: What is Jugger? Video I Free ebook on the sport
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: 406 Error on Installation Attempt

Post 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.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: 406 Error on Installation Attempt

Post by Timbalu »

Did you already read this?
http://board.s9y.org/viewtopic.php?f=1& ... #p10435824
The example with SecRuleRemoveByID might help too.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Huhu
Regular
Posts: 157
Joined: Tue Oct 04, 2011 3:22 pm

Re: 406 Error on Installation Attempt

Post by Huhu »

Thanks, I will read through that!
Post-apocalyptic Jugger sports: What is Jugger? Video I Free ebook on the sport
Post Reply