Knowledgebase

Create a Scheduled Task in cPanel Cron JobscPanel Cron Jobs-এ নির্ধারিত কাজ তৈরি করুন Print

  • 0

A cron job runs a command at scheduled times. Before creating one, confirm the application supports command-line execution and identify the correct script path and PHP binary for the account.

  1. In cPanel, open Cron Jobs. Review the current jobs first to avoid creating duplicates.
  2. Choose a schedule that matches the application’s instructions. Avoid running resource-intensive jobs every minute unless the vendor explicitly requires it.
  3. Enter the full command, including the confirmed interpreter path and the script’s absolute path. Do not copy a path from a different server.
  4. Set a notification address while testing, then save the job.
  5. Check the output or application log after the first run. Confirm it ran once as expected before relying on the schedule.

Use the hosting control panel’s timezone and scheduling guidance; server time may differ from your local time. If the command fails, verify permissions and paths, and ask support which PHP CLI version is available.

BOSS Solution: For account-specific guidance, contact our support team through the Client Area.

Cron Job নির্দিষ্ট সময়ে স্বয়ংক্রিয়ভাবে একটি command চালায়। নতুন Cron Job তৈরির আগে নিশ্চিত করুন যে অ্যাপ্লিকেশনটি CLI থেকে চালানো সমর্থন করে। অ্যাকাউন্টের জন্য সঠিক script path এবং PHP binary-টিও জেনে নিন।

  1. cPanel-এ সাইন ইন করে Cron Jobs খুলুন। একই কাজের একাধিক schedule তৈরি এড়াতে আগে থেকে থাকা Cron Job-গুলো যাচাই করুন।
  2. অ্যাপ্লিকেশনের নির্দেশনা অনুযায়ী schedule বেছে নিন। নির্মাতা স্পষ্টভাবে না বললে resource-intensive command প্রতি মিনিটে চালাবেন না।
  3. PHP interpreter-এর সঠিক path এবং script-এর সম্পূর্ণ path-সহ পুরো command লিখুন। অন্য সার্ভার থেকে path কপি করবেন না।
  4. পরীক্ষার সময় notification পাওয়ার জন্য একটি email address দিন, তারপর Cron Job সংরক্ষণ করুন।
  5. প্রথমবার চালানোর পর command-এর output বা application log দেখুন। নির্ধারিত schedule-এর ওপর নির্ভর করার আগে command প্রত্যাশামতো অন্তত একবার চলেছে কি না নিশ্চিত করুন।

সময় নির্ধারণে cPanel-এর timezone ও schedule নির্দেশনা অনুসরণ করুন—সার্ভারের সময় আপনার স্থানীয় সময়ের সঙ্গে নাও মিলতে পারে। command ব্যর্থ হলে file permission ও path যাচাই করুন। কোন PHP CLI সংস্করণ ব্যবহার করবেন তা নিশ্চিত না হলে সাপোর্ট টিমকে জিজ্ঞাসা করুন।

BOSS Solution: অ্যাকাউন্ট-নির্দিষ্ট সহায়তার জন্য Client Area থেকে সাপোর্ট টিকিট খুলুন।


Was this answer helpful?
Back


We are here to Talk to You