CakePHP
On this site, you find a guide to install CakePHP on CloudPanel.
#
Creating a CakePHP Site#
Via CloudPanel- Click on + Add Site and then click on Create a PHP Site.

- Select the Application CakePHP, enter Domain Name, Site User, Site User Password, and click on Create.

#
Via CloudPanel CLIIf you like the command line, you can create a CakePHP Site with the following command as root user.
clpctl site:add:php --domainName=www.domain.com --phpVersion=8.1 --vhostTemplate='CakePHP 4' --siteUser='john-doe' --siteUserPassword='!secretPassword!'
#
Creating a CakePHP Project- Log in via SSH with the Site User:
ssh john-doe@server-ip-address
- Go to htdocs and delete the directory which CloudPanel has created:
cd htdocs && rm -rf www.domain.com
- Create a CakePHP Project via Composer:
php8.1 /usr/local/bin/composer create-project --prefer-dist cakephp/app:~4.4 www.domain.com
- Done! You can now open your site in your browser to see the Welcome to CakePHP 4 page.
