• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue CronJob Subdomain

R3DC0D3

Basic Pleskian
Hi there,

I searched and can't find right solutions.

I have Cronjob, list below.

Update Sitemap:
wget -O /dev/null http://domain.com/cron/update-sitemap

Check Scheduled Posts:
wget -O /dev/null http://domain.com/cron/check-scheduled-posts

Update RSS Feeds:
wget -O /dev/null http://domain.com/cron/update-feeds

on plesk obsidian 18.0.30 Centos 7.8
Web adres subdomain.domain.co.uk

I try crontab -e i was using on root added but dont work?

i using php news script so update rss and somepost

Guys please check the attachment the if you can help me. on this

Thank you.
 

Attachments

  • 1.jpg
    1.jpg
    146.2 KB · Views: 8
  • ERROR.jpg
    ERROR.jpg
    107.5 KB · Views: 6
"ERROR.jpg" looks like the PHP version on the console is too new for your script.

The other image I cannot interpret easily. That looks like you simply want to run a script located on a URL. In that case, would it not be better to use the "download" option? Or even better to run the PHP scripts directly (without running them through a web server call?
 
Thanks your reply, i changed my php version to 7.3 or older version, how can i run this cronjob work well..

I try those method as well please check on crontab -e

* * * * */opt/plesk/php/7.2/bin/php -q /var/www/vhosts/MYFOLDER/http://SUBDOMAIN.DOMAIN.CO.UK/cron/update-feeds schedule:run >> /dev/null 2>&1

I need solutions

thank you..
 
I am still not sure what you are asking. The crontab string you are giving cannot work, because you have entered a web URL instead of the document root directory of the domain.

Have you tried it this way?

plesk04.jpg
 
Back
Top