Search code examples
phppermissionsfile-permissionscomposer-phpwindows-server-2012

PHP Composer cannot find any classes


We have a server running Windows Server 2012 on AWS. We use composer to manage packages, and run the composer [install/update] commands on the main Administrator account. We run our scripts as a web user.

Everything was working find, but a new script that I am working on, cannot find any classes. It turns out that the composer package folders, only have permissions set for Admin users, the web user does not have permissions to read the folders.

This has never been a problem before, should composer be applying permissions like this? Is there a way to configure composer to allow our web user to have R/W permissions on the packages?

It just seems like a hack / workaround to have to set the permissions manually each time.

Thanks.


Solution

  • If anyone is still interested, the issue was fixed here https://github.com/composer/composer/issues/1714#issuecomment-19693312, running composer self-update will resolve the issue.