• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx

  • We are developing a new feature in Plesk that will help you promote your websites or business on social media. We want to conduct a one-hour online UX test to present the prototype and collect feedback. If you are interested in the feature, please book a meeting via this link.
    Thank you in advance!
  • 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.

Cron Job working on Console, but not automatic in Plesk Taskmanager

sall10

Basic Pleskian
Hello,

i have setup fresh Centos 6.5 with Plesk Pannel 12.0.18. When i execute the attached command from the console, i get it work, some posts are auto created within wordpress. When i enter the attached command within Plesk (Tools / Settings - Taskmanager - root New Task, the command is not executed...

/usr/bin/wget --post-data='id=4&minposts=1&maxposts=3' -O /dev/null http://www.mydomain.com/wp/wp-content/plugins/WPRobot3/cron.php?code=UNIQUEID

I tried also without /usr/bin at the beginning, but its not working with cron automatic, can someone help me with this?

Thanks

Sally
 
Hello Igor,

thanks, i tried the following:

# /usr/local/psa/bin/server_pref --update -crontab-secure-shell ""
SUCCESS: Server preferences are successfully updated

I execute the command via root on console, what worked:

/usr/bin/wget -qq -O /dev/null http://mydomain/wp/wp-content/plugins/WPRobot3/cron.php?code=6ce80845e

Then i add the Command to Plesk Pannel, under Tools / Settings - root, with the times every minute, every day, every week, every month, but command is still not executed. I tried then to add this command directly to /etc/crontab like this:

0/1 * * * * root /usr/bin/wget -qq -O /dev/null http://mydomain.com/wp/wp-content/plugins/WPRobot3/cron.php?code=6ce80845e

Restarted service crond restart

But anyhow, the Task is not automatic running. Its strange, manual its running fine on console, but with the task manager not.

Any other idea, what can i do to get this running?

Thanks,
Sally
 
Back
Top