CloudPanel: cron jobs and logs

In the examples 203.0.113.10 is your server address and my-site.com is your domain. The server address and panel password are in the e-mail with your credentials.

Cron jobs

Cron runs a command on a schedule. Jobs belong to a site and run as its user.

  1. Site → "Cron Jobs" → "Add Cron Job".
  2. Choose a schedule template or fill in the fields by hand.
  3. Command with the full path: php /home/mysite/htdocs/my-site.com/cron.php.
New cron job
New cron job
Job list
Job list

WordPress: a job "every 5 minutes" with the command php /home/myblog/htdocs/my-blog.com/wp-cron.php. Add define('DISABLE_WP_CRON', true); to wp-config.php.

Site logs

"Logs" tab: NGINX and PHP-FPM logs. For a 500/502 error the cause is in the PHP error log.

Site logs
Site logs

Log files: /home/<site user>/logs/.

Panel events

"Admin Area" → "Events": who created a site, issued a certificate, changed the firewall, and when.

Event log
Event log