新手来了。
我试图在我的Ubuntu中安装MISP,遵循以下安装指南:INSTALL.ubuntu1804.txt
当涉及到这个指令时:
# Once done, install CakeResque along with its dependencies if you intend to use the built in background jobs:
cd /var/www/MISP/app
sudo -u www-data php composer.phar require kamisama/cake-resque:4.1.2我拿到了这个:
Cannot create cache directory /home/akatiubuntutest/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/akatiubuntutest/.composer/cache/files/, or directory is not writable. Proceeding without cache
./composer.json has been updated
Cannot create cache directory /home/akatiubuntutest/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/akatiubuntutest/.composer/cache/files/, or directory is not writable. Proceeding without cache
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing monolog/monolog (1.23.0)
Downloading: 65%^C 我在这里尝试了这个解决方案,无法创建缓存目录!用作曲家创建laravel项目时帮我解决这个问题:
sudo chown -R <user> /home/<user>/.composer/cache/repo/https---packagist.org但是(从逻辑上讲,由于它尚未创建),我得到了以下信息:
chown: cannot access '/home/<user>/.composer/cache/repo/https---packagist.org/': No such file or directory我已经安装了PHP和依赖项:
# Install PHP and dependencies
sudo apt-get install libapache2-mod-php php php-cli php-gnupg php-dev php-json php-mysql php-opcache php-readline php-redis php-xml php-mbstring现在,我不知道我错过了什么。
发布于 2018-11-01 13:05:13
在我看来,你的命令中缺少小组的信息。
sudo chown -R <user> /home/<user>/.composer/cache/repo/https---packagist.org应该是
sudo chown -R <user>:<group> /home/<user>/.composer/cache/repo/https---packagist.org但为避免出现其他许可问题,我建议:
sudo chown -R <user>:<group> /home/<user>/.composer/cache(您需要访问那里的其他文件夹)
sudo chown <user>:<group> /home/<user>/.composer以确保用户对全局编写器文件夹拥有足够的权限。注意缺少的递归,这样用户就不会拥有由root创建的键。如果你需要找出这个组:
groups <user>https://askubuntu.com/questions/1077879
复制相似问题