i know as Plesk is not a great software but i want to give it a try.
while i am trying to install flarum i am getting a few errors, could you suggest how can i install flarum
i am doing this to experience what complications i may face using flarum in a different environments
please do not ask me to go to flarum and ask for support, to be honest, they do not know anything about server installation, though few people know they are not so active on flarum
root@amazing-hellman:/var/www/vhosts/flatest.tk/httpdocs# composer create-project flarum/
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Creating a "flarum/" project at "./"
[InvalidArgumentException]
Project directory "/var/www/vhosts/flatest.tk/httpdocs/" is not empty.
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package>] [<directory>] [<version>]
root@amazing-hellman:/var/www/vhosts/flatest.tk/httpdocs# composer create-project flarum/.
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Creating a "flarum/." project at "./"
[InvalidArgumentException]
Project directory "/var/www/vhosts/flatest.tk/httpdocs/." is not empty.
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package>] [<directory>] [<version>]
root@amazing-hellman:/var/www/vhosts/flatest.tk/httpdocs# composer create-project flarum/ .
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Creating a "flarum/" project at "./"
[InvalidArgumentException]
Project directory "/var/www/vhosts/flatest.tk/httpdocs/." is not empty.
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package>] [<directory>] [<version>]
root@amazing-hellman:/var/www/vhosts/flatest.tk/httpdocs# composer create-project flarum/flarum
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Creating a "flarum/flarum" project at "./flarum"
Installing flarum/flarum (v1.2.0)
- Downloading flarum/flarum (v1.2.0)
- Installing flarum/flarum (v1.2.0): Extracting archive
Created project in /var/www/vhosts/flatest.tk/httpdocs/flarum
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- s9e/text-formatter[2.3.6, ..., 2.11.0] require ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
- flarum/core v1.2.0 requires s9e/text-formatter ^2.3.6 -> satisfiable by s9e/text-formatter[2.3.6, ..., 2.11.0].
- Root composer.json requires flarum/core ^1.2 -> satisfiable by flarum/core[v1.2.0].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/7.4/cli/php.ini
- /etc/php/7.4/cli/conf.d/10-opcache.ini
- /etc/php/7.4/cli/conf.d/10-pdo.ini
- /etc/php/7.4/cli/conf.d/20-calendar.ini
- /etc/php/7.4/cli/conf.d/20-ctype.ini
- /etc/php/7.4/cli/conf.d/20-exif.ini
- /etc/php/7.4/cli/conf.d/20-ffi.ini
- /etc/php/7.4/cli/conf.d/20-fileinfo.ini
- /etc/php/7.4/cli/conf.d/20-ftp.ini
- /etc/php/7.4/cli/conf.d/20-gettext.ini
- /etc/php/7.4/cli/conf.d/20-iconv.ini
- /etc/php/7.4/cli/conf.d/20-json.ini
- /etc/php/7.4/cli/conf.d/20-phar.ini
- /etc/php/7.4/cli/conf.d/20-posix.ini
- /etc/php/7.4/cli/conf.d/20-readline.ini
- /etc/php/7.4/cli/conf.d/20-shmop.ini
- /etc/php/7.4/cli/conf.d/20-sockets.ini
- /etc/php/7.4/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.4/cli/conf.d/20-sysvsem.ini
- /etc/php/7.4/cli/conf.d/20-sysvshm.ini
- /etc/php/7.4/cli/conf.d/20-tokenizer.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-dom` to temporarily ignore these required extensions.
root@amazing-hellman:/var/www/vhosts/flatest.tk/httpdocs# php flarum info
root@amazing-hellman:/var/www/vhosts/flatest.tk/httpdocs# composer require s9e/text-formatter
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Installation failed, deleting ./composer.json.
[RuntimeException]
No composer.json present in the current directory (./composer.json), this may be the cause of the following exception.
[InvalidArgumentException]
Package s9e/text-formatter has requirements incompatible with your PHP version, PHP extensions and Composer version:
- s9e/text-formatter 2.11.0 requires ext-dom * but it is not present.
require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>]...
root@amazing-hellman:/var/www/vhosts/flatest.tk/httpdocs#