CodeIgniter Forums
How to Install CodeIgniter 4 on Local Machine – Step-by-Step Guide - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: How to Install CodeIgniter 4 on Local Machine – Step-by-Step Guide (/showthread.php?tid=92961)



How to Install CodeIgniter 4 on Local Machine – Step-by-Step Guide - Witimpat - 05-27-2025

Hello everyone,
I’m new to CodeIgniter and wanted to share a simple step-by-step guide for installing CodeIgniter 4 on your local machine. It’s pretty straightforward:
  1. Download the latest CodeIgniter 4 release from the official site.
  2. Extract the files to your local web server’s root directory (like
    Code:
    htdocs
    for XAMPP).
  3. Make sure you have PHP 7.3 or higher installed.
  4. Open your terminal, navigate to the project folder, and run
    Code:
    php spark serve
    to start the built-in development server.
  5. Open your browser and go to
    Code:
    http://localhost:8080
    to see the welcome page
    If anyone encounters issues with permissions or PHP extensions, feel free to ask here!
Happy coding!