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 » Mon Sep 26, 2005 8:36 pm

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

User avatar
garvinhicking
Core Developer
Posts: 30014
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: 406 Error on Installation Attempt

Post by garvinhicking » Mon Sep 26, 2005 8:40 pm

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 » Mon Sep 26, 2005 8:55 pm

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

User avatar
garvinhicking
Core Developer
Posts: 30014
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Mon Sep 26, 2005 9:53 pm

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 » Mon Sep 26, 2005 10:01 pm

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

darrellb
Posts: 3
Joined: Mon Sep 26, 2005 8:29 pm
Location: Ontario, Canada
Contact:

Post by darrellb » Mon Sep 26, 2005 10:02 pm

Sorry, the last post was from me.

Forgot to log-in.

DarrellB

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

Re: 406 Error on Installation Attempt

Post by Huhu » Wed Jan 22, 2014 2:30 pm

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.
Fan of post-apocalyptic Jugger: Free ebook on the sport

User avatar
yellowled
Regular
Posts: 7007
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: 406 Error on Installation Attempt

Post by yellowled » Wed Jan 22, 2014 6:26 pm

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
amazon Wishlist - Serendipity-Podcast (German only, sorry)

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

Re: 406 Error on Installation Attempt

Post by Huhu » Wed Jan 22, 2014 9:40 pm

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.
Fan of post-apocalyptic Jugger: Free ebook on the sport

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: 406 Error on Installation Attempt

Post by Timbalu » Thu Jan 23, 2014 10:49 am

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: 115
Joined: Tue Oct 04, 2011 3:22 pm

Re: 406 Error on Installation Attempt

Post by Huhu » Thu Jan 23, 2014 11:02 am

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.
Fan of post-apocalyptic Jugger: Free ebook on the sport

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: 406 Error on Installation Attempt

Post by Timbalu » Thu Jan 23, 2014 11:36 am

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

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: 406 Error on Installation Attempt

Post by Timbalu » Sat Jan 25, 2014 4:03 pm

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: 115
Joined: Tue Oct 04, 2011 3:22 pm

Re: 406 Error on Installation Attempt

Post by Huhu » Tue Jan 28, 2014 2:09 pm

Thanks, I will read through that!
Fan of post-apocalyptic Jugger: Free ebook on the sport

Post Reply