We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 51020
    • 670 Posts
    HI there,
    I have just upgraded my server from PHP 5.6.6 to PHP 7.
    Modx is the latest version (2.5.7) All works fine - but permissions seem a bit strange.
    It said in the dashboard that it couldn't write to the core/cache folder, and the only way I could clear this was to changepermissions to 777.
    Same goes for the assets folder - I can no longer edit external css or JS files, unless i change permissions to 777.

    Is this normal?

    Thanks
    Andy

    This question has been answered by multiple community members. See the first response.

      • 17301
      • 932 Posts
      I upgraded my server to PHP7 last month but didn't encounter these issues with any of the MODX site.
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 51020
        • 670 Posts
        Quote from: lkfranklin at Jun 01, 2017, 10:12 AM
        I upgraded my server to PHP7 last month but didn't encounter these issues with any of the MODX site.

        Thanks - It's strange - I couldn't even clear the cache without errors - I had to change the cache directory to 777 which is a bit worrying.
          • 17301
          • 932 Posts
          Sounds like the root user might have taken ownership/permissions of everything when updating
            ■ email: [email protected] | ■ website: https://alienbuild.uk

            The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
            • 51020
            • 670 Posts
            Quote from: lkfranklin at Jun 01, 2017, 10:20 AM
            Sounds like the root user might have taken ownership/permissions of everything when updating

            Hmm - sounds plausible. Any ideas how to rectify this? The file Manager in cPanel doesn't give information of the owner of each directory/file.

              • 17301
              • 932 Posts
              Not sure if that can be done in cPanel but if you have console access then try:

              namei -mo /pathtomodxsite/

                ■ email: [email protected] | ■ website: https://alienbuild.uk

                The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
                • 51020
                • 670 Posts
                Quote from: lkfranklin at Jun 01, 2017, 10:26 AM
                Not sure if that can be done in cPanel but if you have console access then try:

                namei -mo /pathtomodxsite/


                Thanks - but I think I only have cPanel access - I've never used console anyway - I wouldn't know where to start!
                  • 51020
                  • 670 Posts
                  The strange thing is that the error says:

                  MODX cannot write to the cache directory. MODX will still function as expected, but no caching will take place. To solve this, make the /_cache/ directory writable.


                  But I don't have a directory called _cache

                  The closest I have is core/cache - and if i change this to 777, then the error goes away.

                  Any ideas?
                    • 17301
                    • 932 Posts
                    That'll be one in the same, core/cache is the folder that MODX uses.
                      ■ email: [email protected] | ■ website: https://alienbuild.uk

                      The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
                      • 51020
                      • 670 Posts
                      Quote from: lkfranklin at Jun 01, 2017, 12:32 PM
                      That'll be one in the same, core/cache is the folder that MODX uses.

                      OK thanks - why do they call it _cache then- very strange!