We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36582
    • 463 Posts
    I've just moved a site from a 1and1 business hosting account to a 1and1 'cloud' server with cpanel. The site at the new location just hangs every now and then (the rest of the time it is lightning fast) - no errors, nothing in modx logs or server logs to indicate a problem.

    Im new to this type of server so not at all sure about the settings, particularly how Apache/nginx work together to serve files. Could be barking up the wrong tree but my gut feeling is that it's the way Apache/nginx are working: Proxy mode is checked, nginx caching is unchecked.

    Any idea of what might be happening?

    PHP Version 7.1.23
    MODX Revolution 2.6.5-pl
    5.5.60-MariaDB
      Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
      • 36818
      • 119 Posts
      Are you using more than one context?
      If so, try to define a error_page setting for each context.
      • When you say it's "hangs" what does that mean? What actions are being performed (loading a page, submitting a form, etc.). If you can post your config files for Apache/nginx and PHP that will be helpful to us as well.

        Cheers
          Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
          Visit CharlesMx.com for latest news and status updates.
          • 36582
          • 463 Posts
          The whole site would just stall now and then - manager and front-end. So it would take maybe 10 seconds to navigate from one page to another and then it would be ok for an hour. I may have solved it but just testing.

          The problem appears to be the way the database is connected i.e...

          localhost:3306 - Bad

          ##.##.##.##:3306 - Good

          ...so connecting by using the ip address seems to work.
            Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
          • Glad to hear you may have it sorted out. Post back with your final outcome for the community please.

            Cheers
              Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
              Visit CharlesMx.com for latest news and status updates.