Help with FeedWordPress

Help with FeedWordPress

Posted by: jonathanb
Posted on: 2007-06-10 16:49:00

I have followed the wiki and FeedWordpress's cron job isn't working for me. I have added the command I'm using and have taken out my username and domain. The command that follows is to get a cron log. Can someone please help me?

/usr/local/php5/bin/php
/home/USERNAME/MYDOMAIN/wp-content/update-feeds.php
/home/USERNAME/cron.log

Re: Help with FeedWordPress

Posted by: rlparker
Posted on: 2007-06-10 17:27:00

You might want to check out the DH Wiki article on running PHP from cron. wink

--rlparker

Re: Help with FeedWordPress

Posted by: Atropos7
Posted on: 2007-06-10 20:56:00

When you need to have cron execute a PHP script, you have to ask yourself this question:

Does it need to run as CGI (by a web server) or as CLI (from the command line)?

If you want to run it as CGI, then you need to employ an HTTP client that will act as a web browser.

The example you posted was using the CLI method where the command executes PHP and PHP runs the PHP script.

I have not taken a look at the PHP source, but it seems the original code is designed to work either way. However I found a place offering a modified version that assumes it is running as CGI.

Having said that, you can probably get by with the following command:

wget http://example.com/wp-content/update-feeds.php >> /home/username/cron.log


cool openvein.org -//-

Tags: cron jobmydomainphp5wikiusrwp