I'm trying to run PHP in public_html with cron but it doesn't work

I am migrating a Cron job from CyberPanel and trying to automatically execute the php file installed in public_html, but “Could not open input file: php /home/web/example.com/public_html/auto_cron.php” It doesn’t work out.
How can I do this?

The paths in hestia are different.

/home/user/web/domain.com/public_html/auto_cron.php

You have to adjust the Cron path accordingly.

3 Likes

It’s different from CyberPanel, isn’t it?
Thank you very much.

Yes HestiaCP != Cyberpanel…

4 Likes

user = username?
Cron cannot work.

Yes! User = hestia username

1 Like

I didn’t receive an error email. Maybe it’s working.
Thank you.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.