Symfony
On this site, you find a guide to install Symfony on CloudPanel.
Creating a Symfony Site
Via CloudPanel
- Click on + Add Site and then click on Create a PHP Site.
![Create a PHP Site](/docs/v2/img/php/applications/create-php-site.png)
- Select the Application Symfony 7, enter Domain Name, Site User, Site User Password, and click on Create.
![Create a Symfony Site](/docs/v2/img/php/applications/symfony/create-site-form.png?v=0.0.3)
Via CloudPanel CLI
If you like the command line, you can create a Symfony Site with the following command as root user.
clpctl site:add:php --domainName=www.domain.com --phpVersion=8.3 --vhostTemplate='Symfony 7' --siteUser='john-doe' --siteUserPassword='!secretPassword!'
Creating a Symfony 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 Symfony Project via Composer:
php8.3 /usr/local/bin/composer create-project symfony/skeleton:^7 www.domain.com
- Done! Symfony has been installed.
![Welcome to Symfony Site](/docs/v2/img/php/applications/symfony/symfony-installed.png?v=0.0.3)