What could be the problem with the installation?

  • 2
    bluntly writes that there are not enough rights to write - etki
  • output ls -l /var/www/my_project/ to studio - Naumov
  • It is better to provide textual information in the form of text, not images: it is more convenient to read, and search engines will index it - aleksandr barakin

2 answers 2

no administrative rights are required to perform the http request. therefore, the curl program can (and should) be executed on its behalf. But the interpretation of the php file received by the curl program, which will probably install and configure the composer, will obviously require such rights.

 $ curl ... | sudo php 

    Permission denied. Try:

    sudo -u {юзер_для_апача} bash

    Then you need to enter your password from the login woolf.
    {юзер_для_апача} is the one who runs the folder /var/www/my_project is usually www-data . If sudo has passed - you can try the installation again, if not - look for "sudo setup".

    • Well, how would he perform php from his user - Naumov
    • @Naumov It doesn't matter from which user the php is executed. It is important that he /var/www/my_project under his other user. But it should be under the same one with which he wants the compiler to roll in. And this should preferably be the one under whom the apache is executed - otherwise there will be confusion. - Goncharov Alexander