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 v1

Installing Castopod on Cloud Panel makes websites administration very easy!

Benjamin Bellamy
Benjamin Bellamy
Cloud Panel v1 is now deprecated, so you probably should read this post instead: “Install Castopod on Cloud Panel v2”.

Cloud Panel is said to be “The easiest way to run your PHP App in the Cloud”.

We successfully installed Castopod on Cloud Panel on a 8€/month Scaleway Dedibox server (price varies from day to day depending on demand) and on a 5€/month OVH Public Cloud D2-2.

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.

According to cloudpanel.io, you will get:

  • Easy to use Control Panel
  • Up and running within 60 seconds
  • Supports all common PHP Apps
  • One-Click Let's Encrypt Certificates
  • Multiple PHP Versions
  • NGINX Support
  • Support for all big clouds
  • Cloud Functionalities
  • Supports > 10 languages

…but also Percona database, Redis cache and much more!
technology_stack-1

Installing Debian, 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.

  • Download and install Debian (10+) on your server (with curl, wget and sudo packages).
  • You just need one single command line (that will not ask for anything from you) in order to install Cloud Panel CE:
$ curl -sSL https://installer.cloudpanel.io/ce/v1/install.sh | sudo bash

Screen-Shot-2020-11-08-at-22.09.09

  • When that is done you will see Cloud Panel dashboard on your web browser:
    Screen-Shot-2020-11-08-at-22.14.03

  • Create a new domain.

    • Do not forget to set the Document Root in public/ directory.
    • Select the CodeIgniter 4 template.
    • Select PHP 8.0
      Screen-Shot-2020-11-08-at-22.17.10
  • Do not forget to enable HTTPS (with Letsencrypt):
    Screenshot-from-2021-02-24-12-03-55

  • Then create a new database:
    Screen-Shot-2020-11-08-at-22.22.27

  • Now download Castopod latest package from https://code.podlibre.org/podlibre/castopod/-/releases on your server (⚠️ make sure you get the package and not the source code).

  • Unzip Castopod package, copy it to the proper directory and change ownership to clp user:
    Screen-Shot-2020-11-08-at-22.29.48

  • Open your web browser to your new website, go to /cp-install, set your domain name (if you need to update it). Changing the Auth and Admin gateways is highly recommended for security reasons:
    Screen-Shot-2020-11-08-at-22.32.41

  • Provide database informations:
    Screen-Shot-2020-11-08-at-22.33.20

  • Select Redis as cache handler:
    Screen-Shot-2020-11-08-at-22.33.33

  • Create your admin account:
    Screen-Shot-2020-11-08-at-22.34.19

  • You’re all set!
    Screen-Shot-2020-11-08-at-22.34.31

  • You may now start podcasting!
    Screen-Shot-2020-11-08-at-22.34.37

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):

$ echo "cache.redis.database=1" | sudo tee -a /home/cloudpanel/htdocs/podcast1.castopod.demo/.env

Troubleshooting: If you get an error 500 page and do not know how to fix it, check your log file (on CloudPanel it should be in the /home/cloudpanel/logs/ folder) in order to get the full error message.

Castopod

Benjamin Bellamy

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