Home » How to Install CodeIgniter on Mac

How to Install CodeIgniter on Mac

by Online Tutorials Library

How to Install CodeIgniter on macOS

Introduction

CodeIgniter is an open source software which is responsible for a rapid development of dynamic websites in PHP. It is a powerful web framework which is based upon the popular model view controller (MVC) development pattern. The first public version of CodeIgniter was released by EliisLab on February 28, 2006.

In this tutorial, we will learn the installation process of CodeIgniter on macOS.

Prerequisites

  • Mac Operating system
  • Proper functioning MySQL
  • PHP version 5.x or greater

Installation

There are the following steps involved in the installation of CodeIgniter on macOS.

1) Download the archived file

Visit the official website of CodeIgniter https://github.com/bcit-ci/CodeIgniter/archive/3.1.6.zip to download the latest version (3.1.6 by the time of writing this tutorial). An archived file will be downloaded which is in zip format.

2) Extract the file

To Extract the file, we need to run the following command.

Macos CodeIgniter 1

3) Start the development server

We need to change our directory to the directory in which the downloaded file is extracted and then start the development server of PHP in order to access CodeIgniter through localhost from browser.

Macos CodeIgniter 2

4) Access CodeIgniter through Browser

To access the CodeIgniter on browser, we just type localhost:8080 in the browser’s bar.

Macos CodeIgniter 3

Hence, we have successfully installed CodeIgniter o macOS.

You may also like