I read a forum or blog post yesterday that claimed that restarting
Apache would just re-insert
cvp.umn.edu back into hosts anyway, so I
ignored that fix. That may or may not be true. I didn't try it for
fear of screwing up my Apache configuration. I'm extremely timid with
config file changes and I was working on this at night. I like to
sleep so the prospect of bringing my server to it's knees was a
daunting one. ;-)
After lots of research here's what I've found:
1. wp-cron.php seems to cause problems for lots of people. So much so
that there are occasional reports of hosting services shutting off
hosting because of overuse of server resources.
2. Wordpress seems to (under certain server configurations) look to
run wp-cron.php in the wrong place. In my case it was trying to run at
'/var/www/html/'. That's the DocumentRoot path in /etc/httpd/conf/
httpd.conf (an Apache server configuration file). It should be using
the path in '/etc/hosts' as Patrick pointed out.
3. This problem can be fixed by running wp-cron.php via a crontab on
the server and disabling Wordpress' cron system, but that requires a
higher level of command line experience than a lot of users will have,
a higher level of server access than a lot of users will have AND some
hacks to the core of Wordpress which means that the next Wordpress
upgrade might erase your work.
By yesterday evening I was experiencing several Apache restarts per
hour. My server has a pretty low load with ~200 users who use a web-
based application and a relatively low number of hits to our public
Wordpress site, so Apache, for the most part was able to restart
quickly enough that there were probably few noticeable service
disruptions. Conversely, the load is low enough that the web server
should not have to restart every 15-20 minutes.
I took several steps to alleviate the situation and they seem to have
helped.
First, I ran a couple of command line scripts that MediaTemple makes
available to optimize PHP & MySQL performance.
Next, I installed WP Super Cache (
http://ocaoimh.ie/wp-super-cache/)
which reportedly lightens Wordpress' server load considerably. Again,
this plugin requires some command line configuration which a lot of
users may not be comfortable with.
There have been no further Apache restarts since 7pm last night. I
can't be sure yet if my fixes worked or if it's just because the
server load is typically very light at night. So far, so good this
morning.
In the interest of complete disclosure, I can't be totally certain
Wordpress was causing the problem since I run another PHP/MySQL
application on the same server. BUT, the restarts did coincide w/
incorrectly routed requests to run wp-cron.php AND there are quite a
few blog and forum posts out there about problems with wp-cron.php and
server problems, so I think it's a likely candidate.
> >
mpls-stpaul-word...@googlegroups.com<mpls-stpaul-wordpress%2B
unsub...@googlegroups.com>
> > .