• 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!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Cronjob Problem

H

hansmeiser

Guest
Hi everyone,

i setup this cronjob, but it does not trigger the file execution:

*/1 */1 */1 */1 */1 usr/bin/php /var/www/vhosts/domain.com/httpdocs/custom/inc/php/cronfile.php

what's wrong?
It does not get executed.

If i trigger the file via my browser, it works...

Any mistakes in the path above?

Thanks a lot,
Hans
 
thanks a lot for your response and that was certainly one of the problems, but now i found the core problem in the cron-report:

Failed loading /usr/lib/php/ioncube/ioncube_loader_lin_4.3.so: /usr/lib/php/ioncube/ioncube_loader_lin_4.3.so: failed to map segment from shared object: Permission denied

means: the ioncube loaders can be called when i trigger the file throuhg the browser directly, but not if the cronjob triggers it on the server!?

any idea how to solve this`?

thanks a lot for your help!

Hans
 
Looks like there are two different config's for CLI and Web.
 
i get closer...

i had the same problem on a different server and there i could solve it making the command type not PHP, but http!

Is that possible with the command line here on plesk?

and how?

THANK YOU for your help!

Hans
 
If you want to activate that script over http, you could use wget in a cronjob. Like this:

/usr/bin/wget -S -O /tmp/web2cli.tmp "http://domain.com/httpdocs/custom/inc/php/cronfile.php"
 
Back
Top