• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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