Knowledgebase

Select a PHP Version for Command-Line Tasks over SSHSSH-এর মাধ্যমে কমান্ড-লাইন কাজের PHP সংস্করণ নির্বাচন করুন Print

  • 0

The PHP version used by a command-line task can differ from the version assigned to a website. Confirm the CLI version before running Composer, a framework command, or a scheduled job.

  1. Enable SSH access in the hosting control panel and connect using the account’s documented hostname, port, and username.
  2. Run php -v to see the default CLI version.
  3. Check the control panel or provider documentation for supported version-specific PHP commands. Do not guess executable paths or copy a command from another server.
  4. Run the command from the application directory and verify that required extensions are available to the CLI version.
  5. Update cron jobs only after testing the exact command interactively.

Changing the CLI binary does not necessarily change the website’s PHP version, and changing a domain’s PHP selector may not update existing cron commands. If the required version is unavailable, ask BOSS Solution support which CLI options are enabled on your plan.

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

কমান্ড-লাইন থেকে চালানো কাজ ওয়েবসাইটে নির্ধারিত PHP সংস্করণের বদলে অন্য সংস্করণ ব্যবহার করতে পারে। Composer, framework command বা Cron Job চালানোর আগে CLI-তে ব্যবহৃত PHP সংস্করণ যাচাই করুন।

হোস্টিং কন্ট্রোল প্যানেল থেকে SSH access চালু করুন। অ্যাকাউন্টের জন্য দেওয়া hostname, port এবং username ব্যবহার করে সংযোগ স্থাপন করুন।

ডিফল্ট CLI সংস্করণ দেখতে php -v চালান।

কোন কোন PHP সংস্করণের জন্য আলাদা CLI command আছে, তা কন্ট্রোল প্যানেল বা হোস্টিং সেবাদাতার নির্দেশিকায় দেখুন। executable-এর path অনুমান করবেন না, কিংবা অন্য সার্ভারের command কপি করবেন না।

অ্যাপ্লিকেশনের directory থেকে command চালান এবং প্রয়োজনীয় PHP extension-গুলো CLI সংস্করণে চালু আছে কি না যাচাই করুন।

সঠিক command প্রথমে নিজে চালিয়ে পরীক্ষা করার পরেই Cron Job-এ সেটি যোগ বা পরিবর্তন করুন।

CLI binary বদলালে ওয়েবসাইটের PHP সংস্করণ সাধারণত বদলায় না। একইভাবে, কোনো domain-এর PHP selector পরিবর্তন করলেও আগে থেকে তৈরি Cron Job-এ নতুন সংস্করণ স্বয়ংক্রিয়ভাবে প্রয়োগ নাও হতে পারে। প্রয়োজনীয় সংস্করণ না পেলে আপনার hosting plan-এ কোন CLI বিকল্প চালু আছে তা জানতে BOSS Solution Client Area থেকে সাপোর্ট টিমের সঙ্গে যোগাযোগ করুন।


Was this answer helpful?
Back


We are here to Talk to You