We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37117
    • 24 Posts
    Hello!

    I've installed fresh modx with folders(and files) permissions set to default (705 folders, 464 files). There were no problems with that until I've decided to use migx on one functionality. Aparently it can't save of modify files inside cache folder. Error log shows something like this:

    [2013-08-02 08:55:05] (ERROR @ /index.php) Could not retrieve data to cache for resource 18 (resource 18 is where migx TV is being used)

    Question:
    Is there a non-destructive way to change chmod permission globally? I've been configuring modx for 2 days and I don't want to lose my entire work.

    P.S.
    Changing permsissions inside cache folder is ineffective (after cleaning it, folders and files are back on default permissions again)

    P.S.

    Adding custom new_file_permissions and new_folder_persmissions to System Settings give no results.

    Please help smiley [ed. note: dfaktor last edited this post 13 years, 2 months ago.]
      • 9207 ☆ A M B ☆
      • 2,475 Posts
      705? You aren't on GoDaddy, per chance, are you? That number doesn't even make sense in most scenarios -- 755 is far more common. The second digit there is for the group... so you're saying owner gets to read, write, and execute, the world gets to read and execute, but the group gets nothing. It just doesn't make sense, and the only place I've ever seen that kind of octal shenanigans was on GoDaddy. (Very bad choice for hosting, imo).

      Changing permissions isn't destructive in and of itself. Your system settings cannot magically endow MODX with more power than you've allotted on the filesystem itself. I'd try changing the core/cache/ directory and all of its contents to 777 and see what that does for you:

      chmod -R 777 /path/to/core/cache
        • 1343 ☆ A M B ☆
        • 2,213 Posts
        You could also use the following command to set permissions to 644/755 (or whatever). I wouldn't recommend 666/777 unless your hosting absolutely requires it, and even then only what absolutely needs it.

        find -type f ! -perm 644 -exec chmod 0644 {} \;
        find -type d ! -perm 755 -exec chmod 0755 {} \;
        


        I'll also second Everett's recommendation on hosting, if you are running a MODX site there are far better choices.
          Patrick | Server Wrangler
          About Me: Website | Tweets |  MODX Hosting