newbie here.
I was trying to install MISP in my Ubuntu, following this installation guide:INSTALL.ubuntu1804.txt
When it comes to this instruction:
# 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
I got this:
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
I tried the solution here Cannot create cache directory ! help me solve this when create laravel project with composer:
sudo chown -R <user> /home/<user>/.composer/cache/repo/https---packagist.org
But (well, logically, since it is yet to be created) I got this:
chown: cannot access '/home/<user>/.composer/cache/repo/https---packagist.org/': No such file or directory
I've already installed PHP and the dependencies:
# 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
Right now, I'm not sure what I missed doing.
~/.composer
is owned byroot
or something). Try runningsudo chown -R $USER. ~
to ensure everything in your home directory is owned by you.