Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run php artisan cache:clear - PHP version not specified #164

Closed
xplosionmind opened this issue Feb 4, 2022 · 2 comments
Closed

Comments

@xplosionmind
Copy link

Describe the bug

When running php artisan cache:clear, I get:

Composer detected issues in your platform:

Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.3.33-1+0~20211119.91+debian10~1.gbp618351.

PHP Fatal error:  Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.3.33-1+0~20211119.91+debian10~1.gbp618351. in /var/www/pixelfed/vendor/composer/platform_check.php on line 24`

Context

  • Hardware: VPS bought online
  • YunoHost version: 4.3.6.2
  • I have access to my server: Through SSH
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
    • If yes, please explain:
  • Using, or trying to install package version/branch: 0.11.2

Steps to reproduce

sudo -s
cd /var/www/pixelfed
php artisan cache:clear

Expected behavior

SUccesfully clearing the cache

@lapineige lapineige added the bug Something isn't working label Feb 5, 2022
@lapineige
Copy link
Member

php artisan cache:clear

Use php7.4 artisan cache:clear, if it is not specified it will fallback to the default php version (here, php7.3).

@lapineige lapineige removed the bug Something isn't working label Feb 5, 2022
@xplosionmind
Copy link
Author

Use php7.4 artisan cache:clear

Great! This way, it works. Thanks a lot.

@xplosionmind xplosionmind changed the title Uable to run php artisan cache:clear Unable to run php artisan cache:clear Feb 5, 2022
@yalh76 yalh76 closed this as completed Feb 5, 2022
@lapineige lapineige changed the title Unable to run php artisan cache:clear Unable to run php artisan cache:clear - PHP version not specified Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants