We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28104
    • 8 Posts
    So today I decided to upgrade a modx website running 2.2.4pl to 2.2.6pl.
    (disclaimer: this is not the first time this website is updated - no issues before)

    Here is what I did:
    - in modx manager: emptied cache and flush all sessions
    - logged via SSH to my webhost
    - backed-up files and db
    - downloaded the latest modx (2.2.6pl) using wget
    - unzipped it
    - copy over the new files
    - went to mysite.com/setup
    - and...

    got my error page !?!? (page that displayed when webpage is incorrect)


    I checked to make sure the setup folder was created (and it was)
    But no matter what, I cannot display the setup.
    It is like the setup folder doesn't exist.

    I tried different web browsers, making sure the cache is emptied.

    I even removed the setup folder and created an empty one.
    In this case I can go to mysite.com/setup
    But as soon as I copy the files from the 2.2.6pl, I cannot access the setup folder (I'm redirected to my error page)

    I'm a bit puzzled...
    Any advices?

    Thanks! [ed. note: SpaceTurtle last edited this post 13 years, 7 months ago.]
      • 28104
      • 8 Posts
      Thanks everybody for your inputs... tongue

      I got things working though.
      It was all to do with files and folders permissions.
      I had to set all files to 644 and all folders to 755.

      Anything else less restrictive (like 664 or 775) would not work.
      I believe this is the way my host has its permissions setup (?)
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Yes, in many cases servers configured to use CGI/FastCGI with suexec or some other suexec method (such as the su_php Apache module) are configured to require 755 and 644 permissions. This can vary wildly from host to host. I had one client on a server that required any file with "config" in its name to be set to 600!
          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