• 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.

Setting up cron job

R

Roosta21

Guest
I have a website url that when inputted into a browser generates the update of a database.

How would I set that up in plesk to run a cron jon to automate this task?
 
Go to "scheduled tasks" under "Server", and add a new task for the user "root". The command should be like that:
PHP:
lynx --source -noredir -validate -verbose 'http://www.URL.tld/' > /tmp/mycron.log 2> /tmp/mycron_error.log

Note: you've to get lynx installed on your host.
 
Thanks for the reply, tried both lynx and wget manually, as root, and they both get 403 forbidden..

checked the logs and they returned the following..

"client denied by server configuration:"

The file is chmod to 777

??
 
Had a .htaccess file in blocking it, silly error :). Thanks for the command below it worked perfectly after i put ' ' at eith side of the url.

Thanks again

Ross
 
Back
Top