我在这里读过几个关于这个问题的文章,并且尝试了所有提供的解决方案,它们都不起作用。
每当我尝试composer install时,我都会遇到一堆错误,比如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这就是我迄今为止尝试过的:
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发布于 2017-04-14 22:00:50
可以更改html目录的所有权,如下所示:
sudo chown pi /var/www/html然后将权限设置为
chmod 776 -R /var/www/html它将允许用户和组的读、写和执行权限,并将读和写权限授予他人(www-data、apache等)。
https://askubuntu.com/questions/781403
复制相似问题