On this page, we explain step by step how to setup Yii 2 with CloudPanel.
When you Add the Domain, make sure to select the Yii 2 Vhost Template and the right PHP Version.
Make sure to point the Document Root to the web directory.
To install Yii do the following steps:
- Login via SSH to the server e.g. with john-ssh and go htdocs directory:
- Delete the project directory which has been created by CloudPanel:
- Install via composer:
- Reset permissions.
- Done! You can now open your domain in your browser to see the welcome page.