Hardware: VPS bought online YunoHost version:YunoHost 11.2.4 (stable) I have access to my server : All of Below:Through SSH | through the webadmin | direct access via keyboard / screen | Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no If yes, please explain: If your request is related to an app, specify its name and version: 1.8.1~ynh1
Description of my issue
I followed this to installed an extension on my flarum site.
When I do
php flarum cache:clear
It returns with a few lines of these:
PHP Warning: file_put_contents(/var/www/flarum/public/assets/rev-manifest.json): Failed to open stream: Permission denied in /var/www/flarum/vendor/league/flysystem/src/Adapter/Local.php on line 199
I check on flarum forum, and here, on followed this, it is:
Thanks for your reminder. Now I don’t know how to install an extension(I did that last time)
This is what I did:
sudo yunohost app shell flarum
I belive, the following is what I should expected:
flarum@debian-s-1vcpu-2gb-amd-Sgp:~$
Then,
composer require antoinefr/flarum-ext-money
bash: composer: command not found
flarum@debian-s-1vcpu-2gb-amd-Sgp:~$ sudo -u flarum php8.0 composer.phar composer require antoinefr/flarum-ext-money
flarum is not allowed to run sudo on debian-s-1vcpu-2gb-amd-Sgp. This incident will be reported.
flarum@debian-s-1vcpu-2gb-amd-Sgp:~$ flarum php8.0 composer.phar require antoinefr/flarum-ext-money
bash: flarum: command not found
flarum@debian-s-1vcpu-2gb-amd-Sgp:~$ php8.0 composer.phar require antoinefr/flarum-ext-money
Info from https://repo.packagist.org: #StandWithUkraine
Using version ^1.3 for antoinefr/flarum-ext-money
./composer.json has been updated
Running composer update antoinefr/flarum-ext-money
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package fgrosse/phpasn1 is abandoned, you should avoid using it. No replacement was suggested.
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Package zerosonesfun/flarum-bbcode-audio is abandoned, you should avoid using it. No replacement was suggested.
Package zerosonesfun/flarum-bbcode-iframe is abandoned, you should avoid using it. No replacement was suggested.
Package zerosonesfun/flarum-featured-card is abandoned, you should avoid using it. No replacement was suggested.
Package zerosonesfun/flarum-member is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
147 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Then I cleared cache: and the same result as my original post.
php flarum cache:clear
PHP Warning: "resource" is not a supported builtin type and will be interpreted as a class name. Write "\Safe\resource" or
import the class with "use" to suppress this warning in /var/www/flarum/vendor/thecodingmachine/safe/generated/sockets.php on line 797
PHP Warning: "integer" will be interpreted as a class name. Did you mean "int"? Write "\Safe\integer" or import the class with "use" to suppress this warning in /var/www/flarum/vendor/thecodingmachine/safe/generated/swoole.php on line 17
Clearing the cache...
PHP Warning: file_put_contents(/var/www/flarum/public/assets/rev-manifest.json): Failed to open stream: Permission denied in /var/www/flarum/vendor/league/flysystem/src/Adapter/Local.php on line 199
PHP Warning: file_put_contents(/var/www/flarum/public/assets/rev-manifest.json): Failed to open stream: Permission denied in /var/www/flarum/vendor/league/flysystem/src/Adapter/Local.php on line 199
PHP Warning: file_put_contents(/var/www/flarum/public/assets/rev-manifest.json): Failed to open stream: Permission denied in /var/www/flarum/vendor/league/flysystem/src/Adapter/Local.php on line 199
PHP Warning: file_put_contents(/var/www/flarum/public/assets/rev-manifest.json): Failed to open stream: Permission denied in /var/www/flarum/vendor/league/flysystem/src/Adapter/Local.php on line 199
PHP Warning: file_put_contents(/var/www/flarum/public/assets/rev-manifest.json): Failed to open stream: Permission denied in /var/www/flarum/vendor/league/flysystem/src/Adapter/Local.php on line 199
PHP Warning: file_put_contents(/var/www/flarum/public/assets/rev-manifest.json): Failed to open stream: Permission denied in /var/www/flarum/vendor/league/flysystem/src/Adapter/Local.php on line 199
PHP Warning: file_put_contents(/var/www/flarum/public/assets/rev-manifest.json): Failed to open stream: Permission denied in /var/www/flarum/vendor/league/flysystem/src/Adapter/Local.php on line 199
PHP Warning: file_put_contents(/var/www/flarum/public/assets/rev-manifest.json): Failed to open stream: Permission denied in /var/www/flarum/vendor/league/flysystem/src/Adapter/Local.php on line 199
flarum@debian-s-1vcpu-2gb-amd-Sgp:~$ php flarum cache:clear
PHP Warning: "resource" is not a supported builtin type and will be interpreted as a class name. Write "\Safe\resource" or
import the class with "use" to suppress this warning in /var/www/flarum/vendor/thecodingmachine/safe/generated/sockets.php o
n line 797
PHP Warning: "integer" will be interpreted as a class name. Did you mean "int"? Write "\Safe\integer" or import the class w
ith "use" to suppress this warning in /var/www/flarum/vendor/thecodingmachine/safe/generated/swoole.php on line 17
Clearing the cache...
Does the above result shows I need to change any file permission. Because
file_put_contents(/var/www/flarum/public/assets/rev-manifest.json): Failed to open stream: Permission denied in /var/www/flarum/vendor/league/flysystem/src/Adapter/Local.php on line 199
Then with these following, Do I need to do anything about it?
PHP Warning: "resource" is not a supported builtin type and will be interpreted as a class name. Write "\Safe\resource" or import the class with "use" to suppress this warning in /var/www/flarum/vendor/thecodingmachine/safe/generated/sockets.php on line 797
PHP Warning: "integer" will be interpreted as a class name. Did you mean "int"? Write "\Safe\integer" or import the class with "use" to suppress this warning in /var/www/flarum/vendor/thecodingmachine/safe/generated/swoole.php on line 17
Clearing the cache...
PHP Warning: "resource" is not a supported builtin type and will be interpreted as a class name. Write "\Safe\resource" or import the class with "use" to suppress this warning in /var/www/flarum/vendor/thecodingmachine/safe/generated/sockets.php on line 797
PHP Warning: "integer" will be interpreted as a class name. Did you mean "int"? Write "\Safe\integer" or import the class with "use" to suppress this warning in /var/www/flarum/vendor/thecodingmachine/safe/generated/swoole.php on line 17
Clearing the cache...
This is not what I suggested, but I see there is no permission issue any more. Now try in the app shell php composer.phar update then clear cache again.