• I need some advice and suggestions regarding my site:

    This is my site:
    https://inetconnectionsnetwork.com/
    Recently my host sent me usage warnings regarding cpu usage and server stability. They further threatened to suspend my account if I did not address the issue. I can’t afford to lose this site.

    Their primary complaint centers around wp-cron usage and these processes:

    CPU% 186 /usr/bin/php /home/inetconn/public_html/index.php
    CPU% 165 /usr/bin/php /home/inetconn/public_html/index.php
    CPU% 164 /usr/bin/php /home/inetconn/public_html/wp-cron.php

    Disabling the wp-cron also seems to have disabled the message updates on the main page. It also seems to be effecting interest in gaining new signups.

    First, I need to know if there is any way to reactivate the wp-cron and reduce the load. If not, I need to know if there is any low cost hosting that can handle the load.

    Please no spam. You prompt response will be greatly appreciated.
    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • I can sympathize. I have been around the block with this more times than I care to think about.

    What you have to do first is to figure out if the problem is with your host, with your site, or both. Traffic isn’t the only thing that determines how much CPU time your site will use. It also depends on the theme you’re using, how many plugins you have installed, etc.

    Sadly, there are a number of hosting companies that “oversell” their unlimited disk space, unlimited bandwidth hosting packages, then try to get you to spend more for a more robust hosting solution as soon as you get your site built. If you’re with one of those hosts, the best thing to do is to change hosts. There are lots of hosts that offer free transfers, so you can get help moving your site, especially if it’s hosted on a cPanel server.

    The other thing that I have had happen is to have a site so aggressively crawled by bots that it got suspended by a host for CPU or memory usage. If you have access to something like Awstats on cPanel, or some other logging system that shows the number of page views/bandwidth by IP address, you may find that some excessive traffic is what is causing the problem. Blocking those IPs, adding a honeypot to trap them, or modifying your robots.txt file to slow legitimate web crawlers may help.

    The next thing you need to do is make sure your site is running efficiently as possible. Take a look at the article Optimizing WordPress in the Codex. One of the most beneficial things you can do is start using a caching plugin like WP Super Cache to cache pages.

    You need to run wp-cron.php occasionally. I don’t know how your host disabled it. The usual way is to add the following to the functions.php of your theme:
    define('DISABLE_WP_CRON', true);
    They might have done it some other way, so you may need to ask them. If you have access to cron–maybe via cPanel–you can always leave wp-cron disabled in functions.php and change wp-cron to an actual cron job run once an hour or so instead of letting WordPress trigger it itself. That can save some CPU time, too.

    Thread Starter inetconn

    (@inetconn)

    Hi,
    Thanks for the reply. I should have updated this when we got the situation under control.

    My developer, disabled it. We then noted that this also impacted what was going on at the site. Stopping cron seemed to freeaze the page. It was not updating and one post stayed there for two days or so. He reactivated it, but then did something to it to reduce the cpu load.

    This has also forced me to look outsource for my ads. I.E. not hosting an ads script on my site. I am already looking at some ideas, but am awaiting replies from them.

    Everything seems to be working for the most part, but you did bring up a good question. How do I stop the bots and “fake traffic” that is invading my site. I think that they may be using some sort of remote access. How do I stop that?

    We have tried to isolate ip, but they are using an ip reandomizer that makes this approach impossible. Any help would be appreciated.

    Thanks again,
    Ryan

    It can be a real challenge. You’ll need to get your developer to block the bad bots using their user agent or a honeypot if you can’t do so by IP.

    Thread Starter inetconn

    (@inetconn)

    Can you tell me where I can go to learn all about wordpress and this stuff we are talking about?

    This isn’t really specific to WordPress, but to any site these days. I have never seen all you need to know in one place. You could try googling “block bots by user agent” and “add honeypot to stop web crawlers” as well as taking a look at Project Honeypot, though what you really want is a honeypot that shuts down the bad bots, preventing them from further accessing the site, rather than just collecting their addresses, as Project Honeypots code did last time I looked at it.

    Some honeypots will just work with registration and comment forms; that’s not specifically what you want unless your problem is with spam registrations and comments. My impression is that you’re dealing with bots crawling the site.

    Thread Starter inetconn

    (@inetconn)

    I didn’t ask my question right. I want to learn about WordPress and how to set it up, etc. Where would I go to learn more?

    Moderator James Huff

    (@macmanx)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘hosting issues and problems’ is closed to new replies.