Hi
Me again
I'm having problems with scheduled tasks, as follows:
If I run script A from browser, it works with no problem (PHP script).
If I run from console from the same folder, it works. If I do it from a different folder, I'm getting include errors.
Therefore, my command /usr/bin/php /var/www/vhosts/domain.com/subdomain.domain.com/cron/script.php > /dev/null 2>&1 fails.
I tried a "cd" command from console before the php one and it works, but not from plesk scheduled tasks.
Anything I can do to solve this? To be honest I am a bit upset I always have to configure something because it's not there or doesn't work.
Thanks,
- Peter
Me again
I'm having problems with scheduled tasks, as follows:
If I run script A from browser, it works with no problem (PHP script).
If I run from console from the same folder, it works. If I do it from a different folder, I'm getting include errors.
Therefore, my command /usr/bin/php /var/www/vhosts/domain.com/subdomain.domain.com/cron/script.php > /dev/null 2>&1 fails.
I tried a "cd" command from console before the php one and it works, but not from plesk scheduled tasks.
Anything I can do to solve this? To be honest I am a bit upset I always have to configure something because it's not there or doesn't work.
Thanks,
- Peter