@utopiarte@tupambae.org avatar utopiarte , to studi0

:

Is there a way to tell castopod which php version to use if several options are available on a VPS installation, for example with a line in the .env file?

In other software the following is used:
'php_path' => '/usr/bin/php'
'php_path' => '/etc/php/8.1/fpm/'

spoiler click to open/close | castopod .env.example

--------------------------------------------------------------------

Example Environment Configuration file

This file can be used as a starting point for

your Castopod instance settings.

For manual configuration:

- copy this file's contents to a file named .env

- replace all the default settings with your values

- go to /cp-install to complete installation

--------------------------------------------------------------------

--------------------------------------------------------------------

Instance configuration

--------------------------------------------------------------------

app.baseURL="https://YOUR_DOMAIN_NAME/"
media.baseURL="https://YOUR_MEDIA_DOMAIN_NAME/"
admin.gateway="cp-admin"
auth.gateway="cp-auth"
analytics.salt="RANDOM_STRING_OF_64_CHARACTERS"

--------------------------------------------------------------------

Database configuration

--------------------------------------------------------------------

database.default.hostname="localhost"
database.default.database="castopod"
database.default.username="root"
database.default.password="****"
database.default.DBPrefix="cp_"

--------------------------------------------------------------------

Email configuration

--------------------------------------------------------------------

email.fromEmail="your_email_address"

email.SMTPHost="your_smtp_host"

email.SMTPUser="your_smtp_user"

email.SMTPPass="your_smtp_password"

--------------------------------------------------------------------

Cache configuration (advanced)

Keep as is if you don't know what this means

--------------------------------------------------------------------

cache.handler="file"

Redis configuration

--------------------------------------------------------------------

cache.handler="redis"

cache.redis.host="127.0.0.1"

cache.redis.password=null

cache.redis.port=6379

cache.redis.database=0

--------------------------------------------------------------------

S3 configuration

--------------------------------------------------------------------

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"

--------------------------------------------------------------------

REST API configuration

--------------------------------------------------------------------

restapi.enabled=true

restapi.basicAuthUsername=castopod

restapi.basicAuthPassword=password

restapi.basicAuth=true

@Castopod studi0@tupambae.org icon studi0 @howto