samfingcul
Member
Posted 16 years ago #
i have mu wordpress installed on an hostgator account and i have big problems. my account was susspended because of this:
"Your site was causing heavy load on the server due to the XMLRPC traffic it generating. Please advice what kind of activity was being done on the account."
how can I avoid this? is any problem if i delete xmlprc.php ? that will resolve my problem?
thanks
MrBrian
Member
Posted 16 years ago #
WPMU is resource intensive, so shared hosting (like hostgator) is not viable. You need VPS or Dedi ideally.
samfingcul
Member
Posted 16 years ago #
so there is no another solution?
xmlrpc can be disabled/blocked on a blog by blog basis, Dashboard-->Writing.
Must be a way to do it with an mu-plugin, too. Investigating.
EDIT:
Change first line of xmlrpc.php from true to false
define('XMLRPC_REQUEST', false);
cafespain
Member
Posted 16 years ago #
Are you (or your users) using xmlrpc to post to your blogs. If not then it could be ping-back traffic.
Try renaming the xmlrpc.php file. You can then still post using xmlrpc by specifying a different xmlrpc end point if you need to.
Found a hook that works, I think.
mu-plugin to disable xmlrpc:
<?php
function ds_disable_xmlrpc() {
define('XMLRPC_REQUEST', false);
}
add_filter('xmlrpc_methods','ds_disable_xmlrpc');
?>
samfingcul
Member
Posted 16 years ago #
and where should i paste that code?
thanks
samfingcul
Member
Posted 16 years ago #
can you please create that plugin and tell me what to do next? pretty please
Making a plugin ain't so tough, give it a rip:
http://www.youtube.com/watch?v=0I8Gq_V4p4s