Install on CloudPanel
Put Chatilo on a CloudPanel server step by step: site, database, web root, the installer screens and the cron job.
On this page
This walks you through a fresh install on a server managed with CloudPanel. The same steps work on any Nginx and PHP-FPM server; only the panel screens differ.
Before you start
- A server that meets the server requirements.
- A domain or subdomain pointed at the server.
- The Chatilo files.
- SSH access as the site user.
Steps
- In CloudPanel, add a PHP site for your domain. Choose a generic PHP template and PHP 8.1 or newer.
- In the site's Databases tab, add a database. Note the database name, user and password.
Upload the files to the site's folder, for example
/home/SITE_USER/htdocs/YOUR_DOMAIN/.The folders
public,core,app,config,storageand the rest must sit directly inside it.- Open the site's Vhost tab and point the web root at the
publicfolder:root /home/SITE_USER/htdocs/YOUR_DOMAIN/public; - In the same Vhost, add the Nginx lines shown under Nginx lines for the Vhost below.
- Over SSH, as the site user, go to the application folder and make the data folders writable:
chmod -R 775 config storage - Issue an SSL certificate for the domain in CloudPanel.
- Open
https://YOUR_DOMAINin a browser. The installer starts.
Nginx lines for the Vhost
These lines are in nginx.cloudpanel.conf in the project root. Put them inside the server block.
location / {
try_files $uri $uri/ /index.php?$args;
}
client_max_body_size 20m;
location = /widget.js {
add_header Cache-Control "public, max-age=300";
add_header Access-Control-Allow-Origin "*";
}
location /assets/ {
add_header Cache-Control "public, max-age=2592000";
}
- The first block sends every request that is not a real file to
index.php. CloudPanel's generic PHP template usually has it already. client_max_body_sizeallows uploads up to WhatsApp's 16 MB media limit, with some headroom.- The
/widget.jsblock lets customers' websites load and briefly cache the chat widget script. - The
/assets/block gives the versioned assets a long cache time.
The installer screens
The installer has four steps, shown in the left rail: Server check, Database, Site and admin, Ready.
- Server check. Each requirement has a tick or a cross with a hint. Fix anything marked, click Check again, then click Continue to database.
Database. Leave MySQL / MariaDB selected and fill in Host (default
127.0.0.1), Port (default3306), Database name, Database user and Password. Click Test connection and continue.SQLite (testing only) needs no details. It stores everything in one file under
storage/.Site and admin. Fill in:
- Product name: the name shown across the product and in emails.
- Default timezone: the platform's time zone. Invoice dates use it.
- Site URL: the full address, such as
https://app.example.com. It is used in webhook addresses, emails and the chat widget code. - Admin name, Admin email and Admin password (at least 8 characters).
Click Install Chatilo.
The installer always says "Chatilo" here, whatever you typed under Product name: your own name takes effect once installation finishes.
- Ready. The screen shows the cron line for this server. Copy it, then click Sign in as admin.
What happens next
The installer creates the database tables, four starter plans (Starter, Growth, Scale and the free website-chat plan) and your admin account. It writes config/config.php, which holds the database details and a new app key, and it creates storage/installed.lock so the installer cannot run again.
Now finish the setup:
- Add the cron job. See Set up the background worker.
- Sign in. You land on Overview in the admin panel.
- Work through Platform settings: email, payment gateways, AI keys and invoices and tax.
- Review your plans and currencies.
- Go through the security checklist and set up backups.
Reinstalling
The installer runs whenever storage/installed.lock or config/config.php is missing. To start again, delete both files and open the site.
If you point the installer at a database that already has tables, it only applies database changes that are missing, creates the starter plans only when there are no plans, and creates the admin account only if that email is not already a user.
Common problems
"This form expired. Try again."
The installer page was open too long or cookies are blocked. Reload the page and submit again.
"Fix the items marked below, then check again."
At least one line on Server check has a cross. Enable the extension or fix the folder, then click Check again.
"Enter the database name and user from CloudPanel → Databases."
Database name or Database user is empty.
"Couldn’t connect to the database: …"
The message ends with the database server's own error. Check the host, port, name, user and password.
"The pdo_sqlite extension isn’t loaded on this server."
You chose SQLite but PHP has no SQLite driver. Enable pdo_sqlite or choose MySQL.
"Enter the full site URL, like https://app.example.com."
Site URL must start with http:// or https:// and include the domain.
"Couldn’t write config/config.php. Make the config folder writable."
Run chmod -R 775 config as the site user and submit the form again.
You see a file listing, a 404 or PHP source instead of the installer
The web root is not the public folder, or the try_files line is missing. Check steps 4 and 5 and the Nginx lines.