CodeIgniter is a free, open supply and highly effective PHP framework with a really small footprint, created by Rick Ellis in 2006. It’s specifically constructed for builders who want a easy and stylish toolkit to create full-featured internet functions. It comes with lot’s of options together with, Mild Weight, Lively File Database Assist, Picture Manipulation Library, Assist helps, URI Routing, Mannequin-View-Controller Primarily based System and far more.

On this tutorial, we’ll discover ways to set up CodeIgniter on Ubuntu 18.04 LTS (Bionic Beaver) server.


  • A server working Ubuntu 18.04.
  • A non-root person with root password is about as much as your server.

Set up Apache and PHP

CodeIgniter runs on Apache internet server and written in PHP language, so you will have to put in Apache and PHP to your system. First, set up Apache internet server with the next command:

sudo apt-get set up apache2 -y

By default, the most recent model of the PHP isn’t obtainable in Ubuntu 18.04, so you will have so as to add the repository for that. You may add PHP repository with the next command:

sudo apt-get set up python-software-properties -y
sudo add-apt-repository -y ppa:ondrej/php

As soon as the repository is up to date, you possibly can set up PHP and different libraries with the next command:

sudo apt-get set up libapache2-mod-php7.1 php7.1-common php7.1-xml php7.1-zip php7.1-mysql unzip wget -y

Subsequent, begin Apache internet service and allow it to start out on boot time:

sudo systemctl begin apache2
sudo systemctl allow apache2

Set up CodeIgniter

You may obtain the most recent model of the CodeIgniter from Git repository utilizing the next command:

wget https://github.com/bcit-ci/CodeIgniter/archive/3.1.5.zip

As soon as the obtain is accomplished, unzip the downloaded file with the next command:

unzip 3.1.5.zip

Copy the extracted listing to the Apache root listing and provides correct permissions with the next command:

sudo cp -r CodeIgniter-3.1.5 /var/www/html/codeigniter
sudo chown -R www-data:www-data /var/www/html/codeigniter
sudo chmod -R 777 /var/www/html/codeigniter/

Subsequent, create an apache digital host directive for CodeIgniter.

sudo nano /and many others/apache2/sites-available/codeigniter.conf

Add the next strains:

<VirtualHost *:80>
  ServerAdmin [email protected]
  DocumentRoot /var/www/html/codeigniter
  ServerName yourdomain.com
  <Listing /var/www/html/codeigniter/>
 Choices +FollowSymLinks
 AllowOverride All
 Order permit,deny
 permit from all
  ErrorLog /var/log/apache2/codeigniter-error_log
  CustomLog /var/log/apache2/codeigniter-access_log widespread

Save and shut the file, then allow digital host file with the next command:

sudo a2ensite codeigniter

Lastly, restart apache service to use all of the adjustments:

systemctl restart apache2

Entry CodeIgniter

Open your internet browser and sort the URL http://yourdomain.com, you’ll be redirected to the CodeIgniter dashboard as proven on the next web page:

How you can Set up CodeIgniter PHP Framework on Ubuntu 18.04 LTS 13

Congratulations! you’ve efficiently put in CodeIgniter on Ubuntu 18.04 LTS server.

The best way to Deploy Elixir-Phoenix Functions with MySQL on Ubuntu 16.04

Previous article

Why Ardour Is a Key Ingredient to Freelance Success

Next article

You may also like


Leave a Reply

More in Apache