This looks great but the instructions and the DB import need to be improved/fixed.
I have an error when I try to import the DB
I have PHP 8.3 but your script requires PHP 8.4 which it too restrictive
You created the DB dump on MySQL 8 but my server is running MariaDB which does not support the collation: utf8mb4_0900_ai_ci
PHP Code:
Unable to import the MYBB dump:
ERROR 1273 (HY000) at line 5: Unknown collation: 'utf8mb4_0900_ai_ci'
2025-12-31 13:55:38,181 [ERROR] '/usr/bin/mysql' finished with non-zero exit code: 1
So I replaced:
PHP Code:
DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
with
PHP Code:
DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
Then I got another error:
PHP Code:
ERROR 1067 (42000) at line 180: Invalid default value for 'uploaded_at'
2025-12-31 14:15:29,714 [ERROR] '/usr/bin/mysql' finished with non-zero exit code: 1
On line 193 of sql.sql I had to replace:
PHP Code:
`uploaded_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
with
PHP Code:
`uploaded_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
And for the setup, since I run Plesk on my VPS I had to adapt the installations steps!
When I ran this command I got an error (maybe similar issue withg CPanel?):
composer require arokettu/torrent-file --> /usr/bin/env: php: No such file or directory
To fix it I did the following - check which PHP you have installed with Plesk (different for CPanel):
ls /opt/plesk/php/ --> 7.4 8.0 8.1 8.3
Find where Composer is installed:
which composer --> /usr/local/bin/composer
Run Composer using Plesk’s PHP, not the system PHP:
/opt/plesk/php/8.3/bin/php /usr/local/psa/var/modules/composer/composer.phar require arokettu/torrent-file
This is what you should see:
Code:
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]?
./composer.json has been created
Running composer update arokettu/torrent-file
Loading composer repositories with package information
Updating dependencies
Lock file operations: 9 installs, 0 updates, 0 removals
- Locking arokettu/bencode (4.3.2)
- Locking arokettu/is-resource (1.0.5)
- Locking arokettu/torrent-file (5.3.4)
- Locking nikic/iter (v2.4.1)
- Locking psr/event-dispatcher (1.0.0)
- Locking symfony/filesystem (v7.4.0)
- Locking symfony/finder (v7.4.3)
- Locking symfony/polyfill-ctype (v1.33.0)
- Locking symfony/polyfill-mbstring (v1.33.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 9 installs, 0 updates, 0 removals
- Downloading arokettu/is-resource (1.0.5)
- Downloading symfony/finder (v7.4.3)
- Downloading symfony/polyfill-mbstring (v1.33.0)
- Downloading symfony/polyfill-ctype (v1.33.0)
- Downloading symfony/filesystem (v7.4.0)
- Downloading psr/event-dispatcher (1.0.0)
- Downloading nikic/iter (v2.4.1)
- Downloading arokettu/bencode (4.3.2)
- Downloading arokettu/torrent-file (5.3.4)
- Installing arokettu/is-resource (1.0.5): Extracting archive
- Installing symfony/finder (v7.4.3): Extracting archive
- Installing symfony/polyfill-mbstring (v1.33.0): Extracting archive
- Installing symfony/polyfill-ctype (v1.33.0): Extracting archive
- Installing symfony/filesystem (v7.4.0): Extracting archive
- Installing psr/event-dispatcher (1.0.0): Extracting archive
- Installing nikic/iter (v2.4.1): Extracting archive
- Installing arokettu/bencode (4.3.2): Extracting archive
- Installing arokettu/torrent-file (5.3.4): Extracting archive
2 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
4 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found.
Using version ^5.3 for arokettu/torrent-file