Snipe-IT: Cannot create cache directory



  • If you trying to update composer dependencies using sudo -u apache php composer.phar dump or sudo -u apache php composer.phar install --prefer-source.

    You might end up getting a message saying...
    Cannot create cache directory /usr/share/httpd/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache

    Cannot create cache directory /usr/share/httpd/.composer/cache/files/, or directory is not writable. Proceeding without cache

    You can fix this by creating the directory and change the owner to apache.

    mkdir /usr/share/httpd/.composer
    chown -R apache:apache /usr/share/httpd/.composer
    

Log in to reply