We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29646
    • 17 Posts
    Howdy, all,

    I’m kind of new to MODx, but have been loving the heck out of what I’ve seen and been able to do so far. I have (what I assume to be) a basic question, though:

    I have a couple websites that I’m staging at foo.com.somenumber.gridserver.com (that’s the "backdoor" address to my mediatemple account) until my clients get their domain name situation squared away. I’m having problems uploading assets to those sites. Here’s the process I’ve been using:

    - login to manager
    - go to "manage files"
    - browse to my upload location (last time, it was /assets/files/foo/footoo)
    - select the file I want to upload from my desktop (last time it was a .PDF, but I’ve had the same thing happen with image files, too)
    - click "upload"
    - make a link on the page to the newly uploaded asset
    - test the link on the page, only to get an error (file not found)
    - look at the file structure in my FTP client, only to see the "recently uploaded" file doesn’t exist on the server

    (The rest of my process involves saying "WTF?" while banging my head on the desk, then having another Dew in hopes of caffeine-fueled inspiration.)

    Could the problem be the foo.com.somenumber.gridserver.com root? I didn’t change any of the basic site configuration stuff except to change the name of the site and to turn on friendly URLs...

    I sure appreciate any help you can give me. I’ll even buy you a Dew. grin

    -aj

    ps. the file shows up in the file manager just fine.
      ---
      A.J. Van Beest
      Beest Built Websites, LLC
      (877) 292-3378
      • 22303 MODX Staff
      • 10,725 Posts
      I’m not sure, but I believe the MT Grid executes PHP using the server API, so PHP would need to be given access to these files. If you want PHP applications to be able to have access to files and folders in your deployment, you’ll need to give world-writable permissions, or you’ll need to change the group to the web server group account and give the group writable permissions.
        • 29646
        • 17 Posts
        Hi Jason,

        Thanks a lot for your help. I’ve forwarded your suggestions to the MT team to see if they can help me implement them (I’m useful with Win2k3/IIS, but still learning *nix). In the meantime, just for grins, I made a brand-spankin’ new install of MODx in a new domain still in my MT GS account. And wouldn’t you know it, everything works just perfectly. I didn’t change any directory or file permissions or anything; just used the installer.

        I guess that makes me think that *something* happened to the other install of MODx or the files it lives in. I’m sort of thinking about backing up the database and trying to wipe and re-build that other install, but I’m a little hesitant since I’m supposed to show it to my client Monday morning. And there’s part of me that feels like that’d just be peeing in the wind, anyway. *sigh*

        What’s your take on this?

        Thanks again for your help!

        -aj
          ---
          A.J. Van Beest
          Beest Built Websites, LLC
          (877) 292-3378
          • 29646
          • 17 Posts
          OK, so now I feel dumb.

          I moved the site a week or so ago, right about when this problem showed up. And of course, I forgot to change the path the file manager used. So, problem solved. Moral of the story: double check each setting!

          Thanks!

          -aj
            ---
            A.J. Van Beest
            Beest Built Websites, LLC
            (877) 292-3378