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

MichCo

New Pleskian
Hi,

I turn on OpenSuse 12.1 with plesk. I've a problem with crontab domains.

My cron in plesk:

10 * * * * php -f /srv/www/vhosts/mydomain.tld/httpdocs/cron.php

When i check in SSH with account user ("bin/sh" access on SSH), the command 'crontab -l' the result it's good. But the cron do not launch....

I've checked if cron is running with root access and is running....

Why crontab for my domains do not launch?


Thanks


PS: sorry for my bad english :(
 
No change :(


look Below:

With SSH user acces
Code:
~> cat /etc/crontab
SHELL=/bin/sh
PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
MAILTO=root
#
# check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly
#
-*/15 * * * *   root  test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1

Code:
~> crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (crontabSgvpKK installed on Wed Nov 28 14:13:39 2012)
# (Cronie version 4.2)
SHELL=/bin/sh
[email protected]
2      *       *       *       *       /usr/bin/php -f /srv/www/vhosts/domain.tld/httpdocs/cron.php
2       *       *       *       *       php -f /srv/www/vhosts/domain.tld/httpdocs/cron.php

With root SSH:
Code:
~ # crontab -u userdomain -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (crontabSgvpKK installed on Wed Nov 28 14:13:39 2012)
# (Cronie version 4.2)
SHELL=/bin/sh
[email protected]
10      *       *       *       *       /usr/bin/php -f /srv/www/vhosts/domain.tld/httpdocs/cron.php
2       *       *       *       *       php -f /srv/www/vhosts/domain.tld/httpdocs/cron.php

Code:
~ # ps -ef | grep cron
root      2486     1  0 13:52 ?        00:00:00 /usr/sbin/cron -n
root      6530  6431  0 14:21 pts/0    00:00:00 grep --color=auto cron

Code:
~ # service cron status
redirecting to systemctl
cron.service - Command Scheduler
          Loaded: loaded (/lib/systemd/system/cron.service; enabled)
          Active: active (running) since Wed, 28 Nov 2012 13:52:06 +0100; 35min ago
        Main PID: 2486 (cron)
          CGroup: name=systemd:/system/cron.service
                  â 2486 /usr/sbin/cron -n
 
Last edited:
Code:
# /usr/local/psa/admin/sbin/crontabmng get userdomain
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (crontabhbzCUF installed on Wed Nov 28 15:09:31 2012)
# (Cronie version 4.2)
SHELL=/bin/sh
[email protected]
2       *       *       *       *       /usr/bin/php -f /srv/www/vhosts/domain.tld/httpdocs/cron.php
2       *       *       *       *       php -f /srv/www/vhosts/domain.tld/httpdocs/cron.php

I've tried to execute but no effect:
Code:
~ # /usr/local/psa/bin/server_pref -u -crontab-secure-shell /bin/sh
SUCCESS: Server preferences are successfully updated
 
Last edited:
Back
Top