Disable wp-cron and schedule it in panel

I know there are threads talking about this topic, but they have not worked for me. First of all I am a newbie in managing the server so I apologize in advance.

When I disable cron in wp-config( define (‘DISABLE_WP_CRON’, true):wink: and try to configure it in the hestia panel, it doesn’t work, what can I do?

things i tried

/usr/bin/curl -s "https://test.site/script.php"
/usr/bin/curl https://dominio.com/cron.php
/usr/local/bin/php /home/admin/web/domain.com/public_html/wp-cron.php >/dev/null 2>&1
php -f /home/**{user}**/web/**{[domain.com](http://domain.com/)}**/public_html/script.php **>/dev/null 2>&1
wget -q -O - https://domain.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1

ignoring that I already changed the domain and user for the user and the domain.

I think my problem would be in the path where php is located maybe? /usr/local/hestia/php/lib/php.ini

/usr/bin/phpx.x /home/user/web/domain.com/public_html/wp-cron.php > /dev/null 2>&1

x.x = php version
user = your user
domain.com = your domain

It still doesn’t work, I have questions. When you start with usr, do you have to change it to the name with which you enter the server, for example? if so, it doesn’t work either way. ( i tried with usr too).

I enter the admin panel with a subdomain and I have it configured through cloudflare, in case that creates a problem and to give more information

No it is /usr/bin/ folder not “user”

1 Like

I edited myself, the problem is that I didn’t realize it and since I’m doing it fast, copy the code as it is from the wp-config and change the quotes

(‘DISABLE_WP_CRON’, true)

In visual studio I had a problem with the quotes (``) but I didn’t realize it but it’s already solved

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