Knowledgebase

Install CodeIgniter on Shared Hostingশেয়ার করা হোস্টিং-এ CodeIgniter ইনস্টল করুন Print

  • 0

CodeIgniter deployment depends on the framework version, PHP runtime, and hosting configuration. Check the release-specific requirements and confirm that your domain's PHP version and required extensions are available before deploying.

Prepare a secure deployment

  • Back up the current website and database, and test from a separate folder or staging domain when available.
  • Check with BOSS Solution whether SSH access and Composer are available on your specific plan. If Composer is not available, use a compatible deployment process approved for the hosting environment.
  • Keep environment settings, database credentials, source configuration, and dependencies outside the public web root wherever the framework and hosting platform permit.

Set the document root and front controller

For CodeIgniter 4, the web entry point is in the framework's public directory. If your hosting panel allows it, point the domain's document root to that directory (or the host's equivalent public directory). Do not publish the project root, environment file, configuration, or application internals.

For other CodeIgniter releases, follow the documentation for that exact version; directory layouts and deployment steps differ. When the document root cannot be changed, ask support for a secure, supported layout rather than moving sensitive files into public space.

Pretty URLs require the server's rewrite support and an appropriate configuration for its web-server software. Use the framework's instructions for the applicable server and confirm that the hosting account permits those directives. Avoid copying rewrite rules from an unrelated version or host. You can test the front-controller URL first, then enable clean URLs once rewrites are confirmed.

Configure, launch, and troubleshoot

Set the production base URL and database connection using the framework's documented configuration method. Use the control panel to choose a supported PHP version and protect configuration files. Grant only the writable directories the access required by the framework, following the host's permissions guidance; avoid 777.

Test the homepage, a nested route, database connections, forms, and file uploads. If you see a blank page or server error, check the framework and PHP error logs, confirm that the domain is using the expected PHP handler, and verify the required extensions and plan limits. Keep detailed error display disabled on the live site.

When asking for help, share the CodeIgniter version, PHP version, affected URL, and sanitized error details. Do not send secrets or configuration files containing credentials.

BOSS Solution Support: Need help with your hosting setup? Open a ticket through the BOSS Solution Client Area.

CodeIgniter স্থাপনা ফ্রেমওয়ার্ক সংস্করণ, PHP রানটাইম এবং হোস্টিং কনফিগারেশনের উপর নির্ভর করে৷ রিলিজ-নির্দিষ্ট প্রয়োজনীয়তা পরীক্ষা করুন এবং নিশ্চিত করুন যে আপনার ডোমেনের PHP সংস্করণ এবং প্রয়োজনীয় এক্সটেনশনগুলি স্থাপন করার আগে উপলব্ধ।

একটি নিরাপদ স্থাপনা প্রস্তুত করুন

  • বর্তমান ওয়েবসাইট এবং ডাটাবেস ব্যাক আপ করুন এবং উপলব্ধ হলে একটি পৃথক ফোল্ডার বা স্টেজিং ডোমেন থেকে পরীক্ষা করুন৷
  • BOSS Solution দিয়ে চেক করুন আপনার নির্দিষ্ট প্ল্যানে SSH অ্যাক্সেস এবং কম্পোজার উপলব্ধ কিনা। যদি কম্পোজার উপলব্ধ না হয়, হোস্টিং পরিবেশের জন্য অনুমোদিত একটি সামঞ্জস্যপূর্ণ স্থাপনা প্রক্রিয়া ব্যবহার করুন।
  • পরিবেশ সেটিংস, ডাটাবেস শংসাপত্র, উত্স কনফিগারেশন, এবং পাবলিক ওয়েব রুটের বাইরে নির্ভরতা রাখুন যেখানে ফ্রেমওয়ার্ক এবং হোস্টিং প্ল্যাটফর্ম অনুমতি দেয়৷

নথির মূল এবং সামনের নিয়ামক

সেট করুন কোডআইগনিটার 4-এর জন্য, ওয়েব এন্ট্রি পয়েন্টটি ফ্রেমওয়ার্কের public ডিরেক্টরিতে রয়েছে৷ যদি আপনার হোস্টিং প্যানেল এটির অনুমতি দেয়, ডোমেনের ডকুমেন্ট রুটটিকে সেই ডিরেক্টরিতে (বা হোস্টের সমতুল্য পাবলিক ডিরেক্টরি) নির্দেশ করুন। প্রোজেক্ট রুট, এনভায়রনমেন্ট ফাইল, কনফিগারেশন বা অ্যাপ্লিকেশন ইন্টারনাল প্রকাশ করবেন না।

অন্যান্য CodeIgniter রিলিজের জন্য, সেই সঠিক সংস্করণের জন্য ডকুমেন্টেশন অনুসরণ করুন; ডিরেক্টরি বিন্যাস এবং স্থাপনার ধাপ ভিন্ন। যখন নথির মূল পরিবর্তন করা যায় না, তখন সংবেদনশীল ফাইলগুলিকে পাবলিক স্পেসে সরানোর পরিবর্তে একটি সুরক্ষিত, সমর্থিত লেআউটের জন্য সমর্থন জিজ্ঞাসা করুন।

Pretty URL গুলির জন্য সার্ভারের পুনর্লিখন সমর্থন এবং এর ওয়েব-সার্ভার সফ্টওয়্যারের জন্য একটি উপযুক্ত কনফিগারেশন প্রয়োজন৷ প্রযোজ্য সার্ভারের জন্য ফ্রেমওয়ার্কের নির্দেশাবলী ব্যবহার করুন এবং নিশ্চিত করুন যে হোস্টিং অ্যাকাউন্ট সেই নির্দেশাবলীর অনুমতি দেয়। একটি সম্পর্কহীন সংস্করণ বা হোস্ট থেকে পুনর্লিখনের নিয়ম অনুলিপি করা এড়িয়ে চলুন। আপনি প্রথমে ফ্রন্ট-কন্ট্রোলার URL পরীক্ষা করতে পারেন, তারপর পুনর্লিখন নিশ্চিত হয়ে গেলে পরিষ্কার URLগুলি সক্ষম করুন৷

কনফিগার করুন, লঞ্চ করুন এবং সমস্যা সমাধান করুন

ফ্রেমওয়ার্কের নথিভুক্ত কনফিগারেশন পদ্ধতি ব্যবহার করে প্রোডাকশন বেস URL এবং ডাটাবেস সংযোগ সেট করুন৷ একটি সমর্থিত PHP সংস্করণ চয়ন করতে এবং কনফিগারেশন ফাইলগুলি সুরক্ষিত করতে কন্ট্রোল প্যানেলটি ব্যবহার করুন৷ হোস্টের অনুমতি নির্দেশিকা অনুসরণ করে ফ্রেমওয়ার্কের জন্য প্রয়োজনীয় অ্যাক্সেস শুধুমাত্র লিখনযোগ্য ডিরেক্টরিগুলিকে মঞ্জুর করুন; 777 এড়িয়ে চলুন।

হোমপেজ, একটি নেস্টেড রুট, ডাটাবেস সংযোগ, ফর্ম এবং ফাইল আপলোড পরীক্ষা করুন। আপনি যদি একটি ফাঁকা পৃষ্ঠা বা সার্ভার ত্রুটি দেখতে পান, ফ্রেমওয়ার্ক এবং PHP ত্রুটি লগগুলি পরীক্ষা করুন, নিশ্চিত করুন যে ডোমেনটি প্রত্যাশিত PHP হ্যান্ডলার ব্যবহার করছে এবং প্রয়োজনীয় এক্সটেনশন এবং পরিকল্পনা সীমা যাচাই করুন৷ লাইভ সাইটে বিস্তারিত ত্রুটি প্রদর্শন নিষ্ক্রিয় রাখুন.

সাহায্য চাওয়ার সময়, CodeIgniter সংস্করণ, PHP সংস্করণ, প্রভাবিত URL এবং স্যানিটাইজড ত্রুটির বিবরণ শেয়ার করুন। শংসাপত্র সহ গোপনীয়তা বা কনফিগারেশন ফাইল পাঠাবেন না।

BOSS Solution সাপোর্ট: আপনার হোস্টিং সেটআপে সাহায্যের প্রয়োজন? BOSS Solution ক্লায়েন্ট এরিয়াএর মাধ্যমে একটি টিকিট খুলুন।


Was this answer helpful?
Back


We are here to Talk to You