We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7473
    • 6 Posts
    Humm here’s something that’s odd, I tried to rename the ht.access file in the main directory to .htaccess and I got a "Destination already exists" error from the host’s cpanel. Meaning I guess a file with that name exists already? Here’s the weird bit, I can’t see it in there.

    Whoops, sorry I didn’t see the edit to your reply before I posted. Let me check that out.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Well, as I mentioned, it’s normally hidden. You would need to configure your FTP client to show hidden files in order to see it.
        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
        • 7473
        • 6 Posts
        Ok found my .htaccess via FTP and enabling hidden files/folders. Before I make any changes does this file look right to you?

        
        RewriteEngine on
        
        <Files 403.shtml>
        order allow,deny
        allow from all
        </Files>
        
        deny from 65.97.51.1
        RewriteCond %{HTTP_REFERER} !^http://www.thewebsite.com/.*$      [NC]
        RewriteCond %{HTTP_REFERER} !^http://www.thewebsite.com$      [NC]
        RewriteCond %{HTTP_REFERER} !^http://www.thewebsite.com/.*$      [NC]
        RewriteCond %{HTTP_REFERER} !^http://www.thewebsite.com$      [NC]
        RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
        
        


        The IP deny I did through the host’s cpanel, there was a lot of suspicious activity from it so I thought I’d cut it off for now.


          • 7473
          • 6 Posts
          So for an update, I’ve been really looking over the latest visitor logs to the site and comparing it to the resource manager for any corresponding spikes/visits for the past few days.
          I’ve also discovered many questionable referers linking to our site and proceeded to block their domains in the .htaccess file. Domains I absolutely know shouldn’t be linking to us.

          Hopefully that will cut down on spikes caused by outside users. Meanwhile though, I can still cause a memory limit spike myself just by logging into the manager. So I’m still stumped on that. If I could fix that from happening I’d be really happy.

          I tried installing Modx Revolution on to the server, and I believe logging in/working with the manager there didn’t cause memory fluctuations. At least, nothing strenuous. I haven’t messed around with it too much, but that might be a solution.
          If that’s the case I’d have to move everything over. Granted I’ve read that updating from Evo to Rev can be pretty tricky.
          But I rather set up something that the clients are familiar with then jump to a whole new CMS.

            • 1343 ☆ A M B ☆
            • 2,213 Posts
            The memory spikes really lead me to believe there is a problem with the server configuration. They have either overloaded the server, or something just isn’t configured correctly causing the problems.

            I would highly recommend trying another hosting company and/or moving the site to a new server. As for switching to Revolution, there isn’t a direct path at this point in time, addons like provisioner can help, but if you have a large site, you may run into issues with page IDs not matching up.

            Revolution will also use a little more memory, so if you are having memory issues, I wouldn’t recommend upgrading until you resolve them first.
              Patrick | Server Wrangler
              About Me: Website | Tweets |  MODX Hosting
              • 7473
              • 6 Posts
              I agree that it seems like something on the host’s end rather then mine. I’m currently looking into new hosts, something along the same price range with some better customer service that’s for sure. grin Any host suggestions would be awesome.

              And I still have to go over all of this with my client to see if they even want to move.

              Thanks so much for all the help Susan and AMD!! I wish I could give some useful close to the end of this problem for anyone else coming across this.



                • 1343 ☆ A M B ☆
                • 2,213 Posts
                I recommend Site5 or SkyToaster. They are both great options, granted slight bias towards ladder option.
                  Patrick | Server Wrangler
                  About Me: Website | Tweets |  MODX Hosting
                  • 7473
                  • 6 Posts
                  Thanks for the suggestions! I’ll totally look into both of those. laugh
                    • 7473
                    • 6 Posts
                    I’ve been doing my host research while trying to see if maybe I could optimize my modx site a bit more. I was wondering something, can having a lot of templates bog down a site? The modx site in question that’s been causing the spikes whenever I log into the manager has 58 separate templates. Basically it’s a template for each page since the layout is not structured if you will. By that I mean every page’s layout is different. There are elements that I’ve repeated through chunks like the banner and navigation bar, the footer, and a few elements here and there that appear on several pages.

                    I’m wondering if all these templates are causing a problem?

                      • 1343 ☆ A M B ☆
                      • 2,213 Posts
                      I would try to structure the site further to eliminate templates (make things easier to edit), but 58 templates is unlikely to cause a problem. Caching snippets is really your best bet.
                        Patrick | Server Wrangler
                        About Me: Website | Tweets |  MODX Hosting