We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
New design
Control panel
  • Русский
  • Українська
  • English
  • UAH
  • USD
  • RUB
  • EUR
  • 0-800-307-307 Hotline
  • +38 (044) 392-74-33 Kiev
  • +38 (057) 728-39-00 Kharkiv
  • +38 (056) 794-38-31 Dnipro
  • +38 (032) 229-58-93 Lviv
  • +38 (048) 738-57-70 Odessa
  • +38(093) 170-15-42  Life
  • +38 (067) 400-88-44 Kievstar
  • +1(888)393-24-51  USA, Toll free
  • +44(131)507-01-14  Great Britain
  • +7 (499) 348-28-61 Moscow Installing CodeIgniter

Here are two ways to install the base script package of the CodeIgniter framework and dependent libraries. The instruction is based on official documentation.

To install CodeIgniter, do the following:
  1. Download the latest CodeIgniter framework from official repository.
  2. Via filemanager or FTPclient upload the archive to hosting in root directory desired site.
  3. Unpack the archive framework to the project directory where you plan to install it.
To install CodeIgniter, do the following:
  1. By default, the hosting uses PHP 5.6 in SSH environment. According to the requirements of the framework, a version of at least 7.2 is required, so override the paths in the variable $PATHby running the command:
    export PATH=/usr/local/php72/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
  2. Run the command:
    composer create-project codeigniter4/appstarter ~/way/to/catalog/theproject
  1. Change PHP version for a site on 7.2 or higher (official requirements).
  2. Edit the file .htaccess in the catalog public:
    1. Change the line:
      Options All -Indexes

      Per line:

      Options -Indexes
    2. Change the line:
      Options +FollowSymlinks

      Per line:

      Options +SymLinksIfOwnerMatch

If the root directory of the site is different from www (usually the project files on CodeIgniter are located in the directory public), then you can set the desired root directory in site settings or write the following directives in the file .htaccess:

# www/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule ((?s).*) public/$1 [L]