Skip to main content


On this site, you find a guide to install CodeIgniter on CloudPanel.

Creating a CodeIgniter Site

Via CloudPanel

  1. Click on + Add Site and then click on Create a PHP Site.
Create a PHP Site
  1. Select the Application CodeIgniter 4, enter Domain Name, Site User, Site User Password, and click on Create.
Create a CodeIgniter Site

Via CloudPanel CLI

If you like the command line, you can create a CodeIgniter Site with the following command as root user.

clpctl site:add:php --phpVersion=8.2 --vhostTemplate='CodeIgniter 4' --siteUser='john-doe' --siteUserPassword='!secretPassword!'

Creating a CodeIgniter Project

  1. Log in via SSH with the Site User:
ssh john-doe@server-ip-address
  1. Go to htdocs and delete the directory which CloudPanel has created:
cd htdocs && rm -rf
  1. Create a CodeIgniter Project via Composer:
php8.1 /usr/local/bin/composer create-project codeigniter4/appstarter
  1. Done! You can now open your site in your browser to see the Welcome to CodeIgniter page.
Welcome to CodeIgniter