Knowledgebase > Server Management > How to Add a Site in CloudPanel v2
How to Add a Site in CloudPanel v2
CloudPanel makes managing your websites incredibly simple. Whether you're deploying a complex application or a simple static page, the process is streamlined and intuitive. This guide will walk you through the steps to add a new site using the CloudPanel v2 interface.
To follow this guide, you will need a running server with CloudPanel v2 installed. If you don't have one, get a powerful and affordable NVMe VPS from VPS Server today!
Accessing the Add Site Page
To get started, log into your CloudPanel account. From the main dashboard, click on + Add Site in the top right corner, or navigate to Sites in the left-hand menu and then click the + Add Site button.
You will be presented with a page where you can choose the type of site you want to create.
1. Creating a PHP Site
This is the most common option, used for applications written in the PHP language. It's the most traditional and widely supported type for web hosting.
Popular Applications:
- Content Management Systems (CMS): WordPress, Joomla, Drupal, Grav.
- eCommerce Platforms: Magento, Shopware, WooCommerce (with WordPress).
- Frameworks: Laravel, Symfony, CodeIgniter.
- Click on the Create a PHP Site button.
- Fill in the required details, including Domain Name, a new Site User and Password, the PHP Version, and the appropriate VHost Template for your application.
After creating the site, you can follow detailed installation guides from the official documentation:
2. Creating a Node.js Site
This option is for applications built using JavaScript on the server side.
Popular Applications:
- Blogging Platforms: Ghost.
- Headless CMS: Strapi.
- Frameworks: Express.js, NestJS, Next.js.
- Real-time Applications: Chatbots, collaborative tools.
To deploy a Node.js app, you typically install it via SSH under the site user, then run it using a process manager like PM2. CloudPanel then proxies requests to your app.
- Click on the Create a Node.js Site button.
- Enter the Domain Name, the App Port your application listens on (e.g.,
3000
), and create a Site User.
For more details, see the Node.js Getting Started Guide.
3. Creating a Python Site
This option is for applications written in the Python programming language.
Popular Applications:
- Frameworks: Django, Flask.
- CMS: Wagtail, Mezzanine.
- Business Applications: Odoo.
- Click on the Create a Python Site button.
- Enter the Domain Name, the App Port your application runs on (e.g.,
8000
for Django), and a Site User.
For additional information, check out the Python Getting Started Guide.
4. Creating a Reverse Proxy
This is the most versatile option. It forwards traffic to another application that is already running on a specific port on your server. This is perfect for self-contained applications.
Popular Applications:
- Workflow Automation: n8n.
- Server & Application Monitoring: Uptime Kuma.
- Analytics: Plausible Analytics.
- Git Hosting: Gitea.
- Wiki Platforms: Wiki.js.
- Any application running in a Docker Container.
- Click on the Create a Reverse Proxy button.
- Enter the Domain Name and the full Reverse Proxy URL of the application, including the protocol and port (e.g.,
http://127.0.0.1:5678
).
5. Creating a Static HTML Site
Choose this for basic websites that do not require a backend language. It's the most lightweight and performant option for simple sites, portfolios, or landing pages.
- Click on the Create a Static Site button.
- Enter the Domain Name and create a Site User.
After creation, you can upload your HTML, CSS, and JavaScript files to the document root directory via SFTP or the File Manager.
Conclusion
After creating your site, CloudPanel will redirect you to the Site Management page. From there, you can manage databases, install free Let's Encrypt SSL certificates, set up cron jobs, and access the file manager. CloudPanel's structured approach makes launching and managing any type of website a straightforward process.
For more in-depth information and advanced configurations, please refer to the Official CloudPanel v2 Documentation.