• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

CLI "Permission Denied" initializing Tenants

Version
4.4.0
Website URL
https://camp-pix.com
PHP version
8.2.29
Database driver
MySQL
Database version
8.0.44-Oubuntu0.22.04.1
Web browser
chrome

SteveSlusser

Chevereto Member
Pro
Attention: No official support is provided at Community Help, this is for users helping each other. If you want official support go to chevereto.com/support

root@ubuntu-s-1vcpu-1gb-nyc3-01:/var/www/html# app/bin/tenants -C help
-bash: app/bin/tenants: Permission denied

I tried -C init and got this same response.

So... What step did I miss?

Steve
 
File is executable. app/bin/tenants - C help
- provides the command list as expected - so it is now executable

root@ubuntu-s-1vcpu-1gb-nyc3-01:/var/www/html# app/bin/tenants -C init
Tenants system is not enabled (CHEVERETO_ENABLE_TENANTS != 1)

root@ubuntu-s-1vcpu-1gb-nyc3-01:/var/www/html#
root@ubuntu-s-1vcpu-1gb-nyc3-01:/var/www/html# CHEVERETO_ENABLE_TENANTS=1
root@ubuntu-s-1vcpu-1gb-nyc3-01:/var/www/html# CHEVERETO_ENCRYPTION_KEY=P3S+EU/DoxDvSrC2Raq9776+N3QShkf9Dp6YKEyUbes=
root@ubuntu-s-1vcpu-1gb-nyc3-01:/var/www/html# CHEVERETO_PROVIDER_NAME=digitalocean
root@ubuntu-s-1vcpu-1gb-nyc3-01:/var/www/html# CHEVERETO_PROVIDER_URL=https://camp-pix.com

root@ubuntu-s-1vcpu-1gb-nyc3-01:/var/www/html# app/bin/tenants -C init
Tenants system is not enabled (CHEVERETO_ENABLE_TENANTS != 1)

Steve
 
You are setting a session variable, on the command line. You need a system level env, like at app/env.php or at Docker compose file or at container run options.
 
I believe that I have set the enviroment (/etc/environment)

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
CHEVERETO_ENABLE_TENANTS=1
CHEVERETO_ENCRYPTION_KEY=P3S+EU/DoxDvSrC2Raq9776+N3QShkf9Dp6YKEyUbes=
CHEVERETO_PROVIDER_NAME=camppix
CHEVERETO_PROVIDER_URL=https://camp-pix.com

Executed the command

root@ubuntu-s-1vcpu-1gb-nyc3-01:/# var/www/html/app/bin/tenants -C init

ERROR MESSAGE NOW


Error in /var/www/html/app/bin/tenants:271

# Message
Class "Redis" not found

# Time
2025-12-19T10:40:05+00:00 [1766140805]

# Incident 69452b85e7496

# Backtrace
------------------------------------------------------------
0 /var/www/html/app/bin/tenants:271
{main}()
------------------------------------------------------------
 
The changes that I made broke my website.

So... I restored the backup droplet before installing the update.
Updated to the new chevereto.

Back to square one - I think I am going to need to have the setup done for me.
 
I should be mentioning this in the docs under a remark or note:

1. Tenants system requires Redis
2. Tenants system only works with External Storage.
3. Tenants system replaces the default system.

Very important:

You can't turn an existing installation into multi-tenant by just enabling the tenants system, is not designed like that. You should create a new tenants installation, if you want to migrate your non-tenants setup to tenants setup the process is all manual. I don't have a guide neither instructions for it.
 
While I am disappointed that I cannot turn my installation into a multi-tenant site, I am relieved to find that the reason I was unable to do this was not due to total incompetency on my part. I did learn some ubuntu skills trying to solve the puzzle.

Perhaps later in 2026 I will make a new installation. But for now, I will let this rest.

Thank you for the time!

Steve
 
Back
Top