[Plugin: LINICKX LifeStream] Note regarding curl and run.php
-
Just a heads-up for anyone else using this great plugin:
I recently moved servers. On my old server I could set up a cron job to execute run.php by putting this into my cron:
/usr/bin/curl https://myserver.com/wordpress/wp-content/plugins/linickx-lifestream/run.php
However on my new server the above command doesn’t do anything. I spent ages trying to find out what was wrong, but finally (after turning on cron email notifications) noticed that the above command returns a 404 ‘page not found’ error. The same page address works in the browser.
After some Googling I discovered that in some cases you need to send a user-agent along with the curl command. I put this command into my cron:
/usr/bin/curl -A “Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5” https://myserver.com/wordpress/wp-content/plugins/linickx-lifestream/run.php
… and everything is working again. Woohoo!
https://www.ads-software.com/extend/plugins/linickx-lifestream/
- The topic ‘[Plugin: LINICKX LifeStream] Note regarding curl and run.php’ is closed to new replies.