principiante qui.
Stavo cercando di installare MISP nel mio Ubuntu, seguendo questa guida all'installazione:INSTALL.ubuntu1804.txt
Quando si tratta di questa istruzione:
# 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
Ho questo:
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
Ho provato la soluzione qui Impossibile creare la directory della cache! aiutami a risolverlo quando creo un progetto laravel con il compositore:
sudo chown -R <user> /home/<user>/.composer/cache/repo/https---packagist.org
Ma (beh, logicamente, dal momento che deve ancora essere creato) ho ottenuto questo:
chown: cannot access '/home/<user>/.composer/cache/repo/https---packagist.org/': No such file or directory
Ho già installato PHP e le dipendenze:
# 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
In questo momento, non sono sicuro di cosa mi sono perso a fare.
Risposta accettata:
mi sembra che le informazioni sul gruppo manchino nel tuo comando
sudo chown -R <user> /home/<user>/.composer/cache/repo/https---packagist.org
Dovrebbe essere
sudo chown -R <user>:<group> /home/<user>/.composer/cache/repo/https---packagist.org
Ma per evitare altri problemi di autorizzazione, preferirei consigliare:
sudo chown -R <user>:<group> /home/<user>/.composer/cache
(avrai bisogno di accedere ad altre cartelle lì dentro)
e
sudo chown <user>:<group> /home/<user>/.composer
Per assicurarti che il tuo utente disponga di autorizzazioni sufficienti sulla cartella del compositore globale. Fai attenzione alla ricorsione mancante in modo che l'utente non possieda le chiavi create da root.
Se hai bisogno di scoprire il gruppo:
groups <user>