• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • 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.

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