• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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