• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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: 9
  • ERROR.jpg
    ERROR.jpg
    107.5 KB · Views: 7
"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