You've successfully subscribed to Castopod Blog
Great! Next, complete checkout for full access to Castopod Blog
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
Success! Your billing info is updated.
Billing info update failed.

Install Castopod on Cloud Panel v2

With Cloud Panel version 2, administrating websites and installing Castopod have never been easier!

Benjamin Bellamy
Benjamin Bellamy
Please note that Castopod is still under development (in beta version): it may not be 100% stable and some features are still being worked on.

Cloud Panel is a free software to configure and manage a server with an obsessive focus on simplicity.
Run static websites, PHP, Node.js and, Python applications.”
easy_to_start_logos

Cloud Panel is distributed for free but it is not open source. Make sure you accept the License Terms before installing it. Cloud Panel is provided by MGT-COMMERCE GmbH.

Although version 1 is deprecated, instructions about installing Castopod on Cloud Panel Version 1 are still available.

Installing Debian or Ubuntu, Cloud Panel and Castopod should take ~30mn, depending on your bandwidth and on your expertise.
Although this requires basic Linux administration skills, all this is very easy.

We use Ubuntu but the choice between Debian and Ubuntu is really up to you.

  • Download and install Debian (11) or Ubuntu (22.04) on your server (with curl, wget and sudo packages installed).
  • Note that you need at least 7GB of free disk space otherwise the installation script will fail (I've been there…).
  • You just need one single command line (that will not ask for anything from you) in order to install Cloud Panel CE (select the database engine you prefer):
$ curl -sSL https://installer.cloudpanel.io/ce/v2/install.sh | sudo DB_ENGINE=MARIADB_10.9 bash

Install-cloudpanel-v2

  • Then open your favourite web browser and create a Cloud Panel admin account:
    CloudPanel-User-Creation
  • When this is done you will see Cloud Panel dashboard:
    CloudPanel-v2-dashboard
  • Create a new site:
    CloudPanel-New-Site
  • Create a PHP site, then:
    • Select CodeIgniter 4,
    • Select PHP 8.1,
    • Enter your domain name:
      CloudPanel-New-PHP-Site
  • Edit the VHost and add try_files $uri $uri/ /index.php?$args; to the location ~ /.well-known section:
    CloudPanel-Update-Vhost
  • Create a Letsencrypt HTTPS certificate:
    CloudPanel-Letsencrypt-certificate
  • You can check that your website is online:
    CloudPanel-Hello-World
  • Now create a new database (write down the username and password, you will need them later):
    CloudPanel-databases
    CloudPanel-Add-Database
  • Go to castopod.org and download Castopod ZIP package.
  • Go to the file manager and upload the Castopod ZIP package to your home folder:
    CloudPanel-Upload
  • Extract the package into the htdocs folder:
    CloudPanel-Extract
    CloudPanel-Extract-to
  • Go in the htdocs folder and delete the website folder (named after your domain name):
    CloudPanel-htdocs
    CloudPanel-Delete
    CloudPanel-Delete-Confirm
  • Rename the castopod folder into your domain name:
    CloudPanel-Rename
  • Change its permissions to 0770:
    CloudPanel-ChangePermission
    CloudPanel-ChangePermission-0770
  • In the Website settings, change the root directory to the public subfolder:
    CloudPanel-Settings
  • Add these 3 Cron jobs (every minute):
    • php8.1 /home/castopod/htdocs/castopod.demo/public/index.php scheduled-websub-publish
    • php8.1 /home/castopod/htdocs/castopod.demo/public/index.php scheduled-video-clips
    • php8.1 /home/castopod/htdocs/castopod.demo/public/index.php scheduled-activities
      CloudPanel-Add-CronJob
      CloudPanel-CronJobs
  • Now go to your domain name in order to run Castopod's wizard:
    CloudPanel-Castopod-Wizard-1
    CloudPanel-Castopod-Wizard-2
    CloudPanel-Castopod-Wizard-3
    CloudPanel-Castopod-Wizard-4
  • You may now login to Castopod:
    CloudPanel-Castopod-Login
  • You are now ready to podcast!!! 🚀
    CloudPanel-Castopod-Dashboard

Note: If you have several websites using Redis, remember to use a different Redis database for each one (Redis default number of databases is 16, from 0 to 15):

  • Add cache.redis.database=1 to the .env file
    CloudPanel-EditEnv1
    CloudPanel-EditEnv2

Happy podcasting! 🥳

Castopod

Benjamin Bellamy

Podcasts, e-commerce & open-source. Father of Castopod. CEO of Ad Aures.