On this page, we explain step by step how to setup Slim 4 with CloudPanel.
When you Add the Domain, make sure to select the Slim 4 Vhost Template and the right PHP Version.
Make sure to point the Document Root to the public directory.
To install Slim 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 Hello world! text.