CakePHP 4

CloudPanel v1 is obsolete

CloudPanel v1 is obsolete; check out the CloudPanel v2 Docs.

On this page, we explain step by step how to setup CakePHP with CloudPanel.


In the following example we will setup CakePHP under the domain


Before we can start with the installation, we need to create an SSH User, a Database, and a Domain.

When you Add the Domain, make sure to select the CakePHP 4 Vhost Template, and the right PHP Version.

Document Root

Make sure to point the Document Root to the webroot directory.


To install CakePHP do the following steps:

  1. Login via SSH to the server e.g. with john-ssh and go htdocs directory:
cd /home/cloudpanel/htdocs/
  1. Delete the project directory which has been created by CloudPanel:
rm -rf /home/cloudpanel/htdocs/
  1. Install via composer:
php8.0 /usr/local/bin/composer create-project --prefer-dist cakephp/app:~4.2
  1. Reset permissions.
cd /home/cloudpanel/htdocs/
clpctl system:permissions:reset 775
  1. Done! You can now open your domain in your browser to see the Welcome to CakePHP 4 page.