Closed tommyraudy closed 7 years ago
please check your permissions, my first guess would be the directory can't be created.
thanks but it worked after i run the command as sudo...
Not an ideal fix, but generally this happens because the folder you're in is owned by www-data
or a different user than you're using to run the composer command. You can run it using su
and using whatever user as well.
The issue is the guide to install makes no mention of needing to change permissions. https://pterodactyl.io/panel/1.0/getting_started.html#download-files So everything for me is mostly owned by root in that /var/www structure.
But then when you run this command: composer install --no-dev --optimize-autoloader It tells you it can't create the Vendor sub as noted above. OK, I will run that as root too
Nope, now you get this error message telling you specifically NOT to run Composer as root. https://getcomposer.org/doc/faqs/how-to-install-untrusted-packages-safely.md
So I feel like the documentation needs to be updated here about how to handle permissions for /var/www as the current instructions simply don't work, as noted by the above which still doesn't seem fixed 7 years later...
Any update on this issue? im getting the same results as @Casper042
Im istalling the panel on my ubuntu server by following your tutorial video, everything went fine after I write this command
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
but when I type this command,composer setup
it showing errorand
Do im doing wrong? Im doing like what i see on your tutorial. btw Im not running the composer command without root or sudo