• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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