পণ্যের অংশে চলে যান
LCPanelলাইসেন্স সেন্টার প্যানেল
AIOV AIO Video টি অধ্যায়

AIO Video ডকুমেন্টেশন

নির্ধারিত কাজ (ক্রন)

একটাই ক্রন লাইন, কোন php ব্যবহার করবেন, ওয়েব-ক্রনের ঠিকানা, ক্রন না থাকলে সাইটের নিজের হার্টবিট, Admin → Cron jobs আর প্রতিটি কাজ।

চালু রাখা হালনাগাদ ৬ নভে ২০২৬ ১৩ / ৩৫

A video site does a lot of work in the background: converting uploads, letting planned videos out, ending memberships, checking the licence, writing the sitemap, tidying up. One cron line runs all of it, including the jobs that plugins bring with them.

The one line

Admin → Cron jobs shows the exact line for your server under The one line to add, with a Copy button. It looks like this:

* * * * * /usr/local/bin/php /home/USER/public_html/cron/run.php > /dev/null 2>&1

In cPanel: Advanced → Cron Jobs, under Common Settings choose Once Per Minute (* * * * *), paste everything after the five stars into Command, and press Add New Cron Job. Within a minute or two the notice at the top of Admin → Cron jobs turns green.

The line runs every minute only so that the site can decide what is due; no job runs more often than it asks to. One line is enough: older separate lines for cron/convert.php, cron/run.php scheduled, cron/run.php live-watch or plugins/lan-cache/warm.php only do the same work twice and can be deleted.

Which php

On many cPanel servers a plain php is the CGI build of PHP, or another version than the website's. cron/run.php works with either. The page also looks for the command-line PHP of the site's own version in the usual places (cPanel, CloudLinux, LiteSpeed, Plesk, DirectAdmin), remembers it for a week and writes it into the line; when it finds none, the line says plain php.

  • Test this line runs the line exactly as cron would. A working line answers with AIO-CRON-OK; otherwise the page says why, for example that the php it names is older than the website's. (On a server that does not let PHP start programs it cannot be tried from the page.)
  • Look for php again searches once more, after the host has changed PHP versions.
  • Path to php under Settings on the same page takes a path you type yourself (on cPanel it looks like /usr/local/bin/ea-php82).

From a shell, in the site's folder, you can also run one job on its own, or just check the line:

php cron/run.php convert
php cron/run.php --check

When the host only allows web addresses

Open If the line will not run on your host: fetch the address instead. It gives a curl line, a wget line and the bare address for a web-cron service. Use one of them, not both:

* * * * * curl -fsS -m 300 "https://your-site/cron/run.php?key=YOUR-KEY" > /dev/null 2>&1

A web call works for about 50 seconds; whatever is still due after that runs with the next call a minute later. The key is shown on the page. Anybody who has it can set the jobs off, but nothing else; Make a new key replaces it, and the old address stops working.

When cron is not arriving at all

The site keeps its jobs going by itself. When the real cron has not reached it for about two and a half minutes, every page of the site and of the admin panel carries a few lines that ask cron/beat.php to run what is due - after the page is drawn, at most once a minute, so nobody waits for it. It stops by itself as soon as cron arrives again. The switch is Keep the jobs going when cron is not arriving under Settings on the Cron jobs page; leave it on.

This keeps a quiet site working, but it only runs while somebody has the site open. A real cron line is better: conversions and planned videos then happen on time even at night.

What the notice at the top means

NoticeMeaning
Cron is working.The line reached the site in the last five minutes, from the command line or a web request.
The cron line is not arriving - the site is running the jobs itself.Nothing is missed while people are on the site, but the line needs fixing.
Cron has never run.Nothing has called the cron address yet.
Cron looks stopped.The line used to arrive and has stopped. Press Test this line.

Admin → System status shows the same state under This site → Cron.

The jobs

JobRunsWhat it does
Video conversionevery 2 minutesencodes waiting uploads into the other sizes and takes thumbnails (waits until FFmpeg is set up)
License checkevery 12 hoursasks the License Center that the licence is in good standing
Membershipshourlycloses memberships whose time is up and tells the member
Planned videosevery 5 minutespublishes videos whose date has come and clears unfinished uploads
Housekeepingdailyfrees stuck conversions and removes old view rows, seen notifications, expired sign-in tokens and old leftovers
Sitemapdailywrites the sitemap files afresh (when the sitemap is on)
Promoted videoshourlyends promotions whose days are up and returns what they did not spend
Channel importsevery minutecarries on with a YouTube channel import; listed only while one is running
Files left behindevery 30 minutesremoves files of deleted videos that could not be removed the first time; listed only when there are some
File server, second triesevery 10 minutessends again the files the store refused; listed only while a store is in use (Storage & FTP Upload)
Storage, moving filesevery 2 minutesmoves five files to the store chosen on the Storage page; listed only while a move runs
Storage, sending the files that are hereevery 2 minutessends the videos uploaded before the store was chosen; only while that runs
Upload by FTP, importingevery 2 minutesturns the files members uploaded by FTP into videos; while Upload by FTP is on
Upload by FTP, closed accountsevery daycloses the FTP accounts of blocked or deleted members

| Imported files, checked for smooth play (import-repair) | every 10 minutes | looks at three files copied from another site: an index at the end is put right on the spot (a copy of the streams), a file far heavier than this site makes for its size is made again at the site's own size; needs FFmpeg (since 1.20.0) |

Plugins add their own jobs, marked from the ... plugin: Live streams (Live), Creator earnings and Advertisement schedule (Advertising & Monetization), LAN cache, QR sign-in codes (Mobile Apps), App sign-ins (Mobile API), two Bandwidth jobs (Bandwidth Monitor), Messages: remove old ones (only when messages are kept for a limited time), and PlayTube move while a move runs in the background.

Quick jobs run first; long ones (conversion, the LAN cache, file-server retries, a PlayTube move) run last, so they never hold up a planned video. A job still busy from the last time is left to finish rather than started twice.

On the Cron jobs page

  • Run now beside a job runs it at once and shows what it did; Run everything now runs them all, one after another.
  • Switch off stops a job from running until you Switch on again.
  • Keep view records for (days) (120 by default, at least 30) tells Housekeeping when to remove single view rows. The view counts of your videos are never touched.
  • Recent runs lists the last 25 runs: when, which job, where from (cron, web, admin or the site itself), how long it took and what happened. A failed run is marked Failed with its message.
এটি কি কাজে লেগেছে?
এই অধ্যায়টি শেয়ার করুন