Não é possível obter permissões corretas para / var / www / html /

1

Eu li vários tópicos aqui falando sobre esse problema e tentei todas as soluções fornecidas, nenhuma delas está funcionando.

Sempre que tento composer install , recebo muitos erros dizendo cannot install

[RuntimeException]                                                 
  /var/www/html/app/vendor does not exist and could not be created. 

Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
  - Installing vlucas/phpdotenv (v2.2.0)
    Downloading: Failed       
    Downloading: Failed       
    Downloading: Failed       
    Failed to download vlucas/phpdotenv from dist: The "https://api.github.com/repos/vlucas/phpdotenv/zipball/9caf304153dc2288e4970caec6f1f3b3bc205412" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
    Now trying to download from source

Isso é o que eu tentei até agora:

sudo chmod -R g+rwX /var/www/html
sudo chown -R www-data:www-data /var/www
sudo chmod -R g+rwX /var/www
sudo chgrp www-data /var/www/html
sudo chmod 775 /var/www/html
sudo chmod g+s /var/www/html
sudo useradd -G www-data george
useradd: user 'george' already exists
sudo chown george /var/www/html/
sudo chown george /var/www/html/app/
sudo chmod g+s /var/www/html/app
sudo chmod 775 /var/www/html/app
    
por Halnex 03.06.2016 / 17:50

1 resposta

0

Você pode alterar a propriedade do diretório html assim:

sudo chowm pi /var/www/html

Em seguida, defina as permissões para

chmod 776 -R /var/www.html
    
por SDsolar 15.04.2017 / 00:00