On this site, you find a guide on setting up other PHP Applications with CloudPanel.
Creating a PHP Site
- Click on + Add Site and then click on Create a PHP Site.
- Select the Application Generic, enter Domain Name, Site User, Site User Password, and click on Create.
After creating the site, you may need to change the Root Directory, for example, if your PHP Application is using public as entry point.
Add /public if your PHP Application is using the public directory as an entry point.
Via CloudPanel CLI
If you like the command line, you can create a PHP Site with the following command as root user.
clpctl site:add:php --domainName=www.domain.com --phpVersion=8.1 --vhostTemplate='Generic' --siteUser='john-doe' --siteUserPassword='!secretPassword!'
Uploading Application Files
Use the Vhost Editor to add some application-specific rules, if needed.