We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10702
    • 107 Posts
    Does anybody know which files and folders have to be writeable to make the cache function working best?

    Unfortunately we often get errors when clearing the cache or the cache-clearing gets stuck. Beside this we often have problems concerning connections to an external database which maybe could also be a problem of former changes we made in the CHMOD-Settings.

    Does anybody know which folders and files must be writeable for a best working cache-function? Would be great!

    Thanks a lot in advance!
    Gerdi smiley
      • 22303 MODX Staff
      • 10,725 Posts
      Just core/cache/ and everything below it has to be writable by the PHP process unless you are using memcached or another caching implementation which doesn’t use the filesystem.
        • 10702
        • 107 Posts
        OK, all folders are set to 775.

        What about the files in these folders? Do they all need 664?

        Many of these files have 644 in our settings. Could this be the problem?
          • 22303 MODX Staff
          • 10,725 Posts
          Without knowing how your server is configured in detail, I don’t know which user is even running the PHP process, so any advice at this point is a bit blind. When I run on a typical mod_php configuration with Apache, the PHP process runs as the Apache user, and so long as the core/cache/ directory is writable by the user Apache is running as, the PHP process will create and own the files within that directory itself. In that case, it’s fine that they are not group writable unless you need to manage those files with a different user account (e.g. your FTP user account). But that would require changing ownership (or group ownership).

          If you are running on a system where PHP runs as your FTP user account (typical fastcgi/suexec configurations), you do not need to mess with permissions at all.
            • 10702
            • 107 Posts
            Thanks a lot! I checked everything right now and everything was correct. Thanks again!

            Do you know if it is also possible to clear the cache of the Redirector? I ask because we made a couple weeks ago some 301-redirects in the Redirector and deleted theses redirects a couple days later.

            But some very strange parts of these redirects left till today.

            For example the alias of a certain resource is: newsletter.html But when we type in www.domain-abc.com/newsletter.html in the browser these URL it is converted into

            http://www.domain-abc.com/newsletter-for-you.php?q=newsletter.html while newsletter-for-you.php was the former alias of the resource.

            Do you have any idea if this could be a special problem of cashing?

            Gerdi smiley

              • 22303 MODX Staff
              • 10,725 Posts
              It might be best to post in the support thread for Redirector.
                • 10702
                • 107 Posts
                Ok, I did this but I am not sure if this thread is really alive. There was one posting before mine which was followed by no disucussion. Therefore it seems like nobody watches this thread. Let´s see what will happen smiley

                Gerdi smiley
                  • 22303 MODX Staff
                  • 10,725 Posts
                  Quote from: Gerdi at Nov 08, 2010, 06:03 PM

                  Ok, I did this but I am not sure if this thread is really alive. There was one posting before mine which was followed by no disucussion. Therefore it seems like nobody watches this thread. Let´s see what will happen smiley

                  Gerdi smiley
                  splittingred has authored a great quantity of Extras and can’t support them all, all by himself. Hopefully, some others in the community will step up and help contribute to the efforts supporting and improving some of these, but don’t assume just because a thread doesn’t get a response that it’s being ignored. Often times, I have pages of posts to go through when I visit the forums and can’t possibly catch them all; some simply get overlooked. I’m sure others have a similar experience. It just helps the community if we keep the conversations focused and under appropriate topics.

                  Cheers!