Recent Topics

Live Writer, xmlrpc 403 error

Started by on Mar 07, 2008 – Contents updated: Mar 07, 2008

Mar 07, 2008 00:12    

My b2evolution Version: Not Entered

Hi

Are there any insights into why accessing xmlrpc.php (either direct or through Live Writer) produces a 403 error?

This is a clean install of 2.4rc2 onto Apache and with the latest version of Live Writer. The Apache server was set up so that no chmods were needed to run the install script which completed without error and all test blogs run fine. However, there doesnt seem to be anything which documents which files are accessed via xmlrpc so it is difficult to check permissions

Thanks

Mar 09, 2008 17:08

The answer was to add an .htaccess file in the directory as Apache blocks access to this file by default

Mar 22, 2008 22:33

I'm getting this problem too. I'll try the .htaccess (what did you have to put in it?) but I don't think Apache is source of the problem.

If I open the page in the a browser it doesn't return a 403.

Update:
I'm nearly sure I'm right now. Access ogs are below:

87.114.x.x- - [22/Mar/2008:17:33:09 -0400] "GET /blogs/index.php/everythingulster HTTP/1.0" 301 348 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Windows Live Writer 1.0)"
87.114.x.x - - [22/Mar/2008:17:33:11 -0400] "GET /blog/index.php/everythingulster HTTP/1.0" 200 66760 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Windows Live Writer 1.0)"
87.114.x.x - - [22/Mar/2008:17:33:12 -0400] "GET /blog/xmlsrv/rsd.php?blog=2 HTTP/1.0" 200 1204 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Windows Live Writer 1.0)"
87.114.x.x - - [22/Mar/2008:17:33:12 -0400] "POST /blog/xmlsrv/xmlrpc.php HTTP/1.0" 403 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Windows Live Writer 1.0)"

If you'll notice above, Windows Live Writer requests rsd.php before it requests xmlrpc.php. The RSD file is in the same directory and is returned fine (200). So there isn't a problem with accessing this directory.

Do I need to activate XML RPC in the admin somewhere?

Mar 23, 2008 02:48

You can try fiddling with the filepermission of xmrpc.php. Start with 777 and work your way back. The 403 error is a permission thing, isn't it?

Good luck

Mar 23, 2008 03:07

Afwas wrote:

You can try fiddling with the filepermission of xmrpc.php. Start with 777 and work your way back. The 403 error is a permission thing, isn't it?

Good luck

No difference I'm afraid. The same 403 error.

Update

I think I've it sussed. I added the following to a new .htaccess file:

<Files xmlrpc.php>
SecFilterInheritance Off
</Files>

Actually found the solution thanks to a forum posting from someoe having similar problems with wordpress. It seems web hosts are blocking files called xmlrpc due to a security issue with earlier versions of Wordpress - or so the story goes.

See http://wordpress.org/support/topic/157608 and http://groups.msn.com/windowslivewriter/generaltopics.msnw?action=get_message&mview=0&ID_Message=786&LastModified=4675590334488039596

For reference:
I think the error message was:

The server reported an error with the following URL:

http://www.everythingulster.com/blog/xmlsrv/xmlrpc.php

403 Forbidden

Mar 23, 2008 03:35

Well, it was a permission thing afrwe all :). Thanks for reporting the solution.

Have fun

Apr 17, 2008 07:21

hello, how do i make a new .htaccess file and where do i put it? also in live writer it asks for a remote publishing url . what do i put there? is it the location of the index.php file? thanks

Apr 17, 2008 14:06

B2evolution comes with a file called sample.htaccess.
You look for sample.htaccess in the root of the B2evolution install on the server and rename it to .htaccess. So remove the "sapmle" part and leave the dot.
This .htaccess is a good starting point if you need to change something.

Good luck

Apr 19, 2008 06:48

i tried this... we had Windows Live Writer working before. but we had to make the blog public and we really want it private. now i cant seem to get it to work at all. public or private :S

Apr 19, 2008 09:50

this problem only occurs (in my experience) when you change the blog to private. (changing the "_main.inc.php" file login required from "false" to "true" .

I was just wondering if anyone has found a way aorund this. Thanks.

Apr 19, 2008 09:57

i tried with the .htaccess file it does NOT work :(


Form is loading...

Social CMS – This forum is powered by b2evolution CMS, a complete engine for your website.