Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

mydomain is the main domain (in Plesk, Media Temple MT VPS), and under that are several Wordpress sites, like,, etc.

Problem is that I get lots of these errors in httpd's error_log:

[error] [client] script '/var/www/html/wp-cron.php' not found or unable to stat

wp-cron.php does exist at the html root in all the Wordpress installs.

I've found hints elsewhere that these errors may have something to do with my /etc/hosts file. This is the hosts file: mydomain localhost localhost.localdomain

Question: do I need to add,, etc., to the hosts file so they resolve and can find the wp-cron.php file?

Edit: found the answer after much Googling. Seems that there are two issues: the hosts file and the fact that MT VPS overwrite the hosts file on each reboot. So the hosts file should look like this for multiple domains on one server: localhost localhost.localdomain yourdomain1 yourdomain2

And those lines must have a few blank lines above the in the hosts file, or they will get overwritten each reboot. See

share|improve this question

How do you have the script set up under Plesk? If you are trying to do a wget or such, you don't want the /var/www/html. If you are running the script as a user in a shell, does the script have appropriate permissions to run as that user?

share|improve this answer
up vote 0 down vote accepted

Found the answer after much Googling. See edit above.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.