StarDomain

PHP Settings and Cron Jobs

Updated 2 min read
Knowledge base article
Contents (4 sections)

Choosing a PHP version

The PHP tab lists the versions installed on your container. Switching restarts PHP-FPM, so your site pauses for a second or two.

Versions marked EOL no longer receive security updates. Use one only if your application genuinely requires it, and plan to move off it.

Settings

You can change memory_limit, upload_max_filesize, post_max_size, max_execution_time and display_errors. Each has a permitted range — the panel will not accept a value outside it.

Two things worth knowing:

  • post_max_size must be greater than or equal to upload_max_filesize, or uploads fail in a way that looks like a broken form.
  • Leave display_errors Off on a live site. It shows visitors your file paths and error detail.

Settings are applied to every installed PHP version, so they survive a version switch.

Extensions

Toggle an extension and PHP-FPM restarts to pick it up. If your application reports a missing extension, check here before contacting support.

Cron jobs

The Cron tab manages scheduled commands. Add a job, then press Save — changes are staged until you do, so you can add and remove several at once.

The schedule is standard cron: minute, hour, day of month, month, day of week. */5 * * * * is every five minutes; 0 3 * * * is 03:00 daily. Presets are available for the common ones.

A command may not contain a % character or a line break — cron treats % specially and it will not do what you expect.

To run a PHP script, call the interpreter by path, for example php /home/<your user>/public_html/cron.php. Send output to a file in logs/ if you want to keep it.

Was this article helpful?

Your answer helps us decide what to improve next.

Still need help? Open a support ticket and our team will reply.

Prefer an app? Add this site to your home screen.Get the app
PHP Settings and Cron Jobs — Container Hosting