We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19889
    • 616 Posts
    Hello
    I’m trying to install the gallery package - however, the installation fails - always telling me that the directory is not writable - this happens in either case whether I create the gallery directory upfront and set it all to writable or not.

    Hope somebody can tell me what I’m doing wrong:


    /*
    * MODx Console Output
    *
    * @date 2010-06-26 07:29:33
    */
    Attempting to install package with signature: gallery-0.1.1-pl

    Package found...now preparing to install.

    Grabbing package workspace...

    Workspace environment initiated, now installing package...

    Attempting to preserve files at /Users/Marco/Sites/cms/modxRev/assets/components/gallery into archive /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3.0.preserved.zip

    Attempting to preserve files at /Users/Marco/Sites/cms/modxRev/core/components/gallery into archive /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3.1.preserved.zip

    /Users/Marco/Sites/cms/modxRev/core/components/gallery is not writable and permissions could not be modified.

    /Users/Marco/Sites/cms/modxRev/core/components/gallery/controllers is not writable and permissions could not be modified.

    PHP warning: copy(/Users/Marco/Sites/cms/modxRev/core/components/gallery/controllers/index.php) [function.copy]: failed to open stream: Permission denied

    xPDOCacheManager->copyFile(): Could not copy file /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/controllers/index.php to /Users/Marco/Sites/cms/modxRev/core/components/gallery/controllers/index.php

    Could not copy file /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/controllers/index.php to /Users/Marco/Sites/cms/modxRev/core/components/gallery/controllers/index.php; could not create directory.

    /Users/Marco/Sites/cms/modxRev/core/components/gallery/controllers/mgr is not writable and permissions could not be modified.

    /Users/Marco/Sites/cms/modxRev/core/components/gallery/controllers/mgr/album is not writable and permissions could not be modified.

    PHP warning: copy(/Users/Marco/Sites/cms/modxRev/core/components/gallery/controllers/mgr/album/update.php) [function.copy]: failed to open stream: Permission denied

    xPDOCacheManager->copyFile(): Could not copy file /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/controllers/mgr/album/update.php to /Users/Marco/Sites/cms/modxRev/core/components/gallery/controllers/mgr/album/update.php

    Could not copy file /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/controllers/mgr/album/update.php to /Users/Marco/Sites/cms/modxRev/core/components/gallery/controllers/mgr/album/update.php; could not create directory.

    Could not copy directory /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/controllers/mgr/album to /Users/Marco/Sites/cms/modxRev/core/components/gallery/controllers/mgr/album

    PHP warning: copy(/Users/Marco/Sites/cms/modxRev/core/components/gallery/controllers/mgr/header.php) [function.copy]: failed to open stream: Permission denied

    xPDOCacheManager->copyFile(): Could not copy file /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/controllers/mgr/header.php to /Users/Marco/Sites/cms/modxRev/core/components/gallery/controllers/mgr/header.php

    Could not copy file /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/controllers/mgr/header.php to /Users/Marco/Sites/cms/modxRev/core/components/gallery/controllers/mgr/header.php; could not create directory.

    PHP warning: copy(/Users/Marco/Sites/cms/modxRev/core/components/gallery/controllers/mgr/home.php) [function.copy]: failed to open stream: Permission denied

    xPDOCacheManager->copyFile(): Could not copy file /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/controllers/mgr/home.php to /Users/Marco/Sites/cms/modxRev/core/components/gallery/controllers/mgr/home.php

    Could not copy file /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/controllers/mgr/home.php to /Users/Marco/Sites/cms/modxRev/core/components/gallery/controllers/mgr/home.php; could not create directory.

    Could not copy directory /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/controllers/mgr to /Users/Marco/Sites/cms/modxRev/core/components/gallery/controllers/mgr

    Could not copy directory /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/controllers to /Users/Marco/Sites/cms/modxRev/core/components/gallery/controllers

    /Users/Marco/Sites/cms/modxRev/core/components/gallery/docs is not writable and permissions could not be modified.

    PHP warning: copy(/Users/Marco/Sites/cms/modxRev/core/components/gallery/docs/changelog.txt) [function.copy]: failed to open stream: Permission denied

    xPDOCacheManager->copyFile(): Could not copy file /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/docs/changelog.txt to /Users/Marco/Sites/cms/modxRev/core/components/gallery/docs/changelog.txt

    Could not copy file /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/docs/changelog.txt to /Users/Marco/Sites/cms/modxRev/core/components/gallery/docs/changelog.txt; could not create directory.

    PHP warning: copy(/Users/Marco/Sites/cms/modxRev/core/components/gallery/docs/license.txt) [function.copy]: failed to open stream: Permission denied

    xPDOCacheManager->copyFile(): Could not copy file /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/docs/license.txt to /Users/Marco/Sites/cms/modxRev/core/components/gallery/docs/license.txt

    Could not copy file /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/docs/license.txt to /Users/Marco/Sites/cms/modxRev/core/components/gallery/docs/license.txt; could not create directory.

    PHP warning: copy(/Users/Marco/Sites/cms/modxRev/core/components/gallery/docs/readme.txt) [function.copy]: failed to open stream: Permission denied

    xPDOCacheManager->copyFile(): Could not copy file /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/docs/readme.txt to /Users/Marco/Sites/cms/modxRev/core/components/gallery/docs/readme.txt

    Could not copy file /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/docs/readme.txt to /Users/Marco/Sites/cms/modxRev/core/components/gallery/docs/readme.txt; could not create directory.

    Could not copy directory /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/docs to /Users/Marco/Sites/cms/modxRev/core/components/gallery/docs

    /Users/Marco/Sites/cms/modxRev/core/components/gallery/elements is not writable and permissions could not be modified.

    /Users/Marco/Sites/cms/modxRev/core/components/gallery/elements/chunks is not writable and permissions could not be modified.

    PHP warning: copy(/Users/Marco/Sites/cms/modxRev/core/components/gallery/elements/chunks/galalbumrowtpl.chunk.tpl) [function.copy]: failed to open stream: Permission denied

    xPDOCacheManager->copyFile(): Could not copy file /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/elements/chunks/galalbumrowtpl.chunk.tpl to /Users/Marco/Sites/cms/modxRev/core/components/gallery/elements/chunks/galalbumrowtpl.chunk.tpl

    Could not copy file /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/elements/chunks/galalbumrowtpl.chunk.tpl to /Users/Marco/Sites/cms/modxRev/core/components/gallery/elements/chunks/galalbumrowtpl.chunk.tpl; could not create directory.

    PHP warning: copy(/Users/Marco/Sites/cms/modxRev/core/components/gallery/elements/chunks/galitem.chunk.tpl) [function.copy]: failed to open stream: Permission denied

    xPDOCacheManager->copyFile(): Could not copy file /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/elements/chunks/galitem.chunk.tpl to /Users/Marco/Sites/cms/modxRev/core/components/gallery/elements/chunks/galitem.chunk.tpl

    Could not copy file /Users/Marco/Sites/cms/modxRev/core/packages/gallery-0.1.1-pl/modCategory/35381895e26964a810b32c103dfd97b3/1/gallery/elements/chunks/galitem.chunk.tpl to /Users/Marco/Sites/cms/modxRev/core/components/gallery/elements/chunks/galitem.chunk.tpl; could not create directory.

    ...
      • 13370
      • 45 Posts
      Looks like your server is on Windows of some kind. Have you tried setting permissions to "full control", not just writable? The NTFS file permissions are pretty complex, you need to enable more than just write access to be allowed to set permissions. Also, does the webserver run as your user, or under a special server account?
        • 19889
        • 616 Posts
        Quote from: Jacob at Jun 26, 2010, 03:17 PM

        Looks like your server is on Windows of some kind. Have you tried setting permissions to "full control", not just writable? The NTFS file permissions are pretty complex, you need to enable more than just write access to be allowed to set permissions. Also, does the webserver run as your user, or under a special server account?

        I’m on OSX with Mamp
          • 18373 ☆ A M B ☆
          • 3,141 Posts
          I assume you already tried making the requested folders up front and setting them to world writeable (777)?
            Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

            Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
            • 13370
            • 45 Posts
            Just guessing, don’t know Mac OS much. But does Apache run under your own user account, or does it have another account? If it does not run as the owner user, you might still have problems.
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              MAMP is a stand-alone version of apache, mysql and php that has nothing to do with the built-in OS X server applications. I’ve never had permissions problems with MAMP, since I install it as my usual desktop user. When I was using XAMPP, though, it was always having permission problems.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org