Common Server Setups
Overview
This guide covers step-by-step server configuration for the most common hosting environments used with ComusThumbz. Each section provides complete setup instructions including PHP configuration, web server setup, and ComusThumbz-specific requirements.
Before proceeding, ensure your server meets the minimum requirements outlined in the Requirements Guide.
Supported Environments
Набір HestiaCP
HestiaCP - це популярна безкоштовна панель керування для серверів VPS. Цей посібник з налаштування охоплює повну установку ComusThumbz.
Вимоги
- English, Українська, Français...
- HestiaCP встановлений
- Статус на сервери
- SSH доступ
Крок 1: Створити домен
- Log in to HestiaCP at
https://your-server-ip:8083 - Go to WEB tab
- Click Add Web Domain
- Enter your domain name
- Enable SSL Support and check Let's Encrypt
- Click Save
[Screenshot: hestiacp-add-domain]
Step 2: Configure PHP
- Go to WEB tab
- Click the wrench icon next to your domain
- Select PHP 8.3 from the PHP version dropdown
- Click Save
Step 3: Enable Required PHP Functions
HestiaCP disables many PHP functions by default. You MUST enable them for ComusThumbz to work.
Option A: Via HestiaCP Panel
- Go to SERVER > Configure > PHP-FPM
- Find your PHP version (e.g., PHP 8.3)
- Locate
disablefunctionsin the configuration - Remove these functions from the disabled list:
exec
shellexecpassthruprocopenpopen
- Click Save
- Restart PHP: In SSH, run
systemctl restart php8.3-fpm
Option B: Via SSH (Recommended)
Find disablefunctions line (around line 314)
Change FROM:
Change TO (remove exec, passthru, shellexec, procopen, popen):
Save and restart PHP-FPM
Step 4: Adjust PHP Settings
Update these settings:
Save and restart
Step 5: Install FFmpeg
Verify installation
Step 6: Install ImageMagick (Optional)
Step 7: Upload ComusThumbz Files
Via File Manager:
In HestiaCP, go to FILES
- Navigate to
/home/username/web/yourdomain.com/publichtml/ - Upload and extract ComusThumbz files
Via SFTP:
Host: your-server-ip
Username: your HestiaCP user
Password: your HestiaCP password
Upload to: /home/username/web/yourdomain.com/public_html/
Step 8: Set Permissions
Set ownership
Set base permissions
Make upload/log directories writable
Step 9: Set Up Cron Job
- SSH into your server
- Run:
crontab -e - Add this line:
Step 10: Run Installer
- Навігація
https://yourdomain.com/install/ - Дотримуйтесь установки майстра
- Видалити
/install/папка після завершення
Сервер HestiaCP тепер налаштований для ComusThumbz!
cPanel/WHM Setup
cPanel - найбільш поширена панель керування хостингом. Цей посібник охоплює налаштування як для спільного, так і VPS хостингу з cPanel.
Вимоги
- Статус на сервери
- PHP 8.0+ доступний
- Доступ SSH (за бажанням)
Крок 1: Виберіть версію PHP
- Увійти до cPanel
- Перейти до вмісту Програмне забезпечення Головна > Менеджер по роботі з клієнтами
- Виберіть домен
- Обрати English, Українська, Français... (або найвищий доступ 8.x)
- Зареєструватися Застосувати
[Screenshot: cpanel-php-version]
Крок 2: Налаштування параметрів PHP
- Go to Software > MultiPHP INI Editor
- Select Editor Mode
- Choose your domain
- Update these settings:
memorylimit = 512Mmaxexecutiontime = 600uploadmaxfilesize = 500Mpostmaxsize = 500Mmaxinputvars = 10000
- Click Save
Step 3: Enable PHP Functions
On shared hosting, you may not have access to enable disabled functions. Contact your host if these functions are disabled.
If you have WHM access:
- Log in to WHM
- Go to Service Configuration > PHP Configuration Editor
- Find
disablefunctions - Remove:
exec, shellexec, passthru, procopen, popen - Save and rebuild PHP
On shared hosting:
Contact your hosting provider to enable these functions for your account.
Step 4: Upload Files
Go to Files > File Manager
- Navigate to
publichtml/ - Click Upload
- Upload and extract ComusThumbz files
Or use FTP:
- Host: yourdomain.com or ftp.yourdomain.com
- Username: your cPanel username
- Password: your cPanel password
Step 5: Set Up Database
- Go to Databases > MySQL Databases
- Create a new database (e.g.,
usernamecomus) - Create a new user with a strong password
- Add user to database with ALL PRIVILEGES
Step 6: Set Up Cron Job
Go to Advanced > Cron Jobs
- Set schedule:
(every minute) - Command:
- Click Add New Cron Job
Step 7: Run Installer
Navigate to https://yourdomain.com/install/ and complete the installation.
Plesk Setup
Plesk is a popular control panel for VPS and dedicated servers.
Step 1: Add Domain
- Log in to Plesk
- Go to Websites & Domains
- Click Add Domain
- Enter your domain and configure settings
- Enable SSL/TLS support
Step 2: Configure PHP
- Go to Websites & Domains > Your domain > PHP Settings
- Set PHP version to 8.3
- Configure:
memorylimit = 512Mmaxexecutiontime = 600uploadmaxfilesize = 500Mpostmaxsize = 500M
- Click OK
Step 3: Enable PHP Functions
- Go to PHP Settings for your domain
- Find Additional directives section
- Add:
(Empty value removes all disabled functions)
- Or selectively enable by removing specific functions from the disabled list
Step 4: Install FFmpeg
Via SSH:
CentOS
Step 5: Set Up Cron Job
- Go to Websites & Domains > Your domain > Scheduled Tasks
- Click Add Task
- Schedule: Every minute (
) - Command:
Step 6: Upload and Install
- Upload files via FTP or File Manager
- Set permissions
- Run installer at
https://yourdomain.com/install/
Ubuntu + Apache (Manual Setup)
For VPS or dedicated servers without a control panel.
Step 1: Update System
Step 2: Install Apache
Step 3: Install PHP 8.3
Install PHP and extensions
Enable PHP-FPM with Apache
Step 4: Install MySQL/MariaDB
Create database and user
Step 5: Install FFmpeg
Step 6: Configure PHP
Update these settings:
Step 7: Configure Apache Virtual Host
Крок 8: Встановити SSL (Зашифрування гнізда)
Крок 9: Завантажити ComusThumbz
Завантаження файлів (через SCP, SFTP або wget)
... upload files ...
Set ownership
Set permissions
Step 10: Set Up Cron Job
Add:
Ubuntu + Nginx Setup
Nginx is recommended for high-traffic sites due to its efficient handling of static files and concurrent connections.
Step 1: Install Nginx and PHP
Install PHP-FPM
Step 2: Configure Nginx
Step 3: Configure PHP-FPM
Update settings as shown in the Apache section, then:
Step 4: Install SSL
Step 5: Continue with Steps 4-10 from Apache Guide
(Database setup, FFmpeg, upload files, permissions, cron)
CentOS / AlmaLinux Setup
Step 1: Install EPEL and Required Repositories
Enable Remi PHP 8.3
Step 2: Install Apache, PHP, and Extensions
Step 3: Install MariaDB
Step 4: Install FFmpeg
Step 5: Configure PHP
Update settings as described in previous sections.
Step 6: Configure SELinux (if enabled)
Allow Apache to write to upload directories
Step 7: Configure Firewall
Troubleshooting Common Setup Issues
"exec() has been disabled" Error
Symptoms: Video processing fails, FFmpeg errors.
Solution: Enable exec() in PHP configuration. See platform-specific instructions above.
"Permission denied" Errors
Symptoms: Cannot upload files, cannot save settings.
Solution:
Cron Job Not Running
Symptoms: Videos stay in "pending" status.
Verify cron:
Check cron log
Test manually
500 Internal Server Error
Symptoms: Blank page or 500 error.
Solutions:
- Check PHP error log:
tail -f /path/to/ct/logs/php-error.log - Check Apache/Nginx error log
- Verify
.htaccessis valid - Check file permissions
API Returns 404
Symptoms: REST API endpoints return 404.
Apache: Ensure modrewrite is enabled and AllowOverride All is set.
Nginx: Ensure the API rewrite rule is in your server block:
Related Documentation
- Вимоги - Повні вимоги до системи
- Привітання - Почати огляд
- Керівництво по монтажу - Покрокова установка
- Налаштування центра управління - Конфігурація майстра