Hi
I have some issues installing extensions.
First of all: I installed flarum and tons of extensions to test on a local xampp with php version 7.4.8. Everything is easy and okay.
My provider (world4you) is not offering putty access with the webspace pro package. But they have a web based terminal to use.
Installing flarum with it was not easy and required some changes to the standard installation:
1.) Installing composer: you have to use https://www.world4you.com/faq/en/easy-install/faq.composer-installieren.html to get composer. Command: curl -LO https://getcomposer.org/composer.phar
If you use the standard installation guideline from composer the update-self and about works, but composer isn't. If you use the command above, update-self and about is not working, but installation of flarum worked...but not the standard way.
2.) Installing flarum: TMPDIR="/home/.sites/120/site#######/tmp" php73 ../composer.phar createproject flarum/flarum . --stability=beta
You have to call the tmpdir and you have to use php73 because if you use php, 5.xx will be used instead. That did cost me some time.
After the installation everything works good, also with https, subdomain and subfolder. mod_rewrite seems to be enabled and there was "no problem".
3.) Installing extensions...
That broke my will. I tried it for days with no proper result.
My "root" directory contains the subfolder test. Within this subfolder flarum is installed. Outside the subfolder you can find the composer.phar which won't work with self-update and about (but at least installed flarum correctly).
So inside the "test" folder i tried the following commands to simply install the extension "fof/links":
TMPDIR="/home/.sites/120/site#######/tmp" php73 "../composer.phar" require fof/links
TMPDIR="/home/.sites/120/site#######/tmp" php73 "../composer.phar" -n require fof/links
php73 ../composer.phar require fof/links
php73 ../composer.phar -n require fof/links
php73 "../composer.phar" require fof/links
php73 "../composer.phar" require "fof/links"
php73 "../composer.phar" -n require fof/links
None of them worked.
Locally "php ../composer.phar require fof/links" worked.
I also tried the above commands with php, not only php73. Didn't work either.
I am running out of ideas. So I was thinking to use the webspace installation and export the database to a sql file, download everything within the "test" folder and set it up locally (by setting it up I mean I changed parts of the config.php file) on my xampp.
This works and I can easily install the extensions.
But does this work the other way round too? Do I need to upload everything again and completely import the database file?
Or is it possible to only upload parts of the vendor folder and the composer.lock and/or the composer.json file and completely import the database file? Will there be a mismatch between php7.4.8 locally and php7.3 online?
I really would prefer to get composer working instead of downloading and uploading the whole system everytime. Is there a different way to use the composer commands above which I forgot?
One more thing: I would provide error messages from composer/php/shell, but the only error I get using the commands is "Error in console, please contact support" by a pop-up and not even inside the web base shell terminal.
Many thanks for any help!