ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Snipe-IT: Cannot create cache directory

    IT Discussion
    1
    1
    1.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • black3dynamiteB
      black3dynamite
      last edited by

      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
      
      1 Reply Last reply Reply Quote 3
      • 1 / 1
      • First post
        Last post