• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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