Como instalar o Castopod?
Castopod foi pensado para ser fácil de instalar. Seja usando hospedagem dedicada ou compartilhada, você pode instalá-lo na maioria dos servidores web compatíveis com PHP-MySQL.
Requisitos
Seção intitulada “Requisitos”- PHP v8.1 or higher
- MySQL versão 5.7 ou superior ou MariaDB versão 10.2 ou superior
- Suporte a HTTPS
- An ntp-synced clock to validate federation’s incoming requests
PHP v8.1 or higher
Seção intitulada “PHP v8.1 or higher”PHP version 8.1 or higher is required, with the following extensions installed:
Além disso, certifique-se de que as seguintes extensões estejam habilitadas em seu PHP:
- json (habilitado por padrão - não desativar)
- xml (habilitado por padrão - não desativar)
- mysqlnd
Banco de dados compatível com MySQL
Seção intitulada “Banco de dados compatível com MySQL”Recomendamos usar o MariaDB.
Você vai precisar do hostname do servidor, nome do banco de dados, nome do usuário e senha para concluir o processo de instalação. Se você não os tem, entre em contato com o administrador do servidor.
Privilégios
Seção intitulada “Privilégios”User must have at least these privileges on the database for Castopod to work:
CREATE
, ALTER
, DELETE
, EXECUTE
, INDEX
, INSERT
, SELECT
, UPDATE
,
REFERENCES
, CREATE VIEW
.
(Opcional) FFmpeg v4.1.8 ou superior para Clipes de Vídeo
Seção intitulada “(Opcional) FFmpeg v4.1.8 ou superior para Clipes de Vídeo”FFmpeg version 4.1.8 or higher is required if you want to generate Video Clips. As seguintes extensões devem ser instaladas:
- Biblioteca FreeType 2 para gd.
(Opcional) Outras recomendações
Seção intitulada “(Opcional) Outras recomendações”- Redis para melhores desempenhos de cache.
- CDN para cache de arquivos estáticos e melhores desempenhos.
- gateway de e-mail para senhas perdidas.
Instruções de instalação
Seção intitulada “Instruções de instalação”Pré-requisitos
Seção intitulada “Pré-requisitos”-
Obter um servidor web com os requisitos instalados
-
Criar um banco de dados MySQL para Castopod com um usuário com privilégios de acesso e de modificação (para mais informações, ver o banco de dados compatível com MySQL).
-
Ativar HTTPS em seu domínio com um certificado SSL.
-
Baixar e descompactar o último Pacote Castopod no servidor web, se você ainda não o fez.
- ⚠️ Definir a raiz do documento do servidor web para a subpasta
public/
dentro da pastacastopod
.
- ⚠️ Definir a raiz do documento do servidor web para a subpasta
-
Add cron tasks on your web server for various background processes (replace the paths accordingly):
Terminal window * * * * * /path/to/php /path/to/castopod/spark tasks:run >> /dev/null 2>&1Note - If you do not add this cron task, the following Castopod features will not work:
- Importing a podcast from an existing RSS feed
- Broadcasting social activities to your followers in the fediverse
- Broadcasting episodes to open hubs using WebSub
- Generating video clips - requires FFmpeg
(recomendado) Assistente de Instalação
Seção intitulada “(recomendado) Assistente de Instalação”- Execute o script de instalação do Castopod acessando a página do assistente
de instalação (
https://your_domain_name.com/cp-install
) no seu navegador favorito. - Siga as instruções na sua tela.
- Comece o podcast!
Using CLI
Seção intitulada “Using CLI”-
Create a
.env
file in the package root based on the.env.example
file. -
Initialize the database using:
Terminal window php spark install:init-database -
Create the superadmin user using:
Terminal window php spark install:create-superadmin -
Head on to your admin gateway to start podcasting!
Email/SMTP setup
Seção intitulada “Email/SMTP setup”Email configuration is required for some features to work properly (eg. retrieving your forgotten password, sending instructions to premium subscribers, …)
You may add your email configuration in your instance’s .env
like so:
# […]
# […]
email.fromEmail="your_email_address"email.SMTPHost="your_smtp_host"email.SMTPUser="your_smtp_user"email.SMTPPass="your_smtp_password"
Configurar opções de e-mail
Seção intitulada “Configurar opções de e-mail”Variable name | Type | Default |
---|---|---|
fromEmail | string | undefined |
fromName | string | "Castopod" |
SMTPHost | string | undefined |
SMTPUser | string | undefined |
SMTPPass | string | undefined |
SMTPPort | number | 25 |
SMTPCrypto | ["tls" or "ssl" ] | "tls" |
Media storage
Seção intitulada “Media storage”By default, files are saved to the public/media
folder using the file system.
If you need to relocate the media
folder to a different location, you can
specify it in your .env
file as shown below:
# […]
media.root="media"media.storage="/mnt/storage"
In this example, the files will be saved to the /mnt/storage/media folder. Make sure to also update your web server configuration to reflect this change.
If you prefer storing your media files on an S3 compatible storage, you may
specify it in your .env
:
# […]
media.fileManager="s3"media.s3.endpoint="your_s3_host"media.s3.key="your_s3_key"media.s3.secret="your_s3_secret"media.s3.region="your_s3_region"
S3 config options
Seção intitulada “S3 config options”Variable name | Type | Default |
---|---|---|
endpoint | string | undefined |
key | string | undefined |
secret | string | undefined |
region | string | undefined |
bucket | string | castopod |
protocol | number | undefined |
pathStyleEndpoint | boolean | false |
keyPrefix | string | undefined |
Pacotes comunitários
Seção intitulada “Pacotes comunitários”If you don’t want to bother with installing Castopod manually, you may use one of the packages created and maintained by the open-source community.
Install with YunoHost
Seção intitulada “Install with YunoHost”YunoHost is a distribution based on Debian GNU/Linux made up of free and open-source software packages. It manages the hardships of self-hosting for you.