cancel
Showing results for 
Search instead for 
Did you mean: 

Annoying Permission issues and InvalidArgumentException

Annoying Permission issues and InvalidArgumentException

Hello i am facing two annoying problem

Config:

  • Nginx
  • Ubuntu 20.04
  • Magento 2.4.3 CE ( composer installation)

I have two annoying recurrent problem. I always get permission problem after setup upgrade or any compilation.

i always need to do after mostly everything or i get this folder is not writtable ....:

 

chown -R www-data:www-data /var/www/MyFolder

And many module can't be installed whatever if i change

minimum-stability (dev) or STABLE 
prefer-stable: true

Of course choose some module and check the compatibility for my version.
like Stripe:

 

[InvalidArgumentException]
  Could not find a matching version of package stripe/stripe-payments. Check the package spelling, your version constraint and that th e package is available in a stability which matches your minimum-stability (dev).

 

Any idea for smooth dev experience Smiley Happy
Thanks