We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 54187
    • 16 Posts
    I've inherited a site installed on a subdomain in its own cpanel account.

    I want to integrate the site into the main site's cpanel account.

    I've copied the files into a new subdomain file location in the new cpanel account, exported the database, and imported the database into the new cpanel account.

    I've edited /core/config/config.inc.php, updating all path variables.

    I've renamed the standalone cpanel account to subdomain-bak.example.com

    However, when I load the site, I receive:

    Error 503
    Site temporarily unavailable

    In the error log, I see:

    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so' - libMagickWand.so.2: cannot open shared object file: No such file or directory in Unknown on line 0

    Help appreciated.
      • 54187
      • 16 Posts
      I found a config.core.php in the web root, and edited the path to MODX_CORE_PATH, and now the front end displays:

      500 Error
      Site temporarily unavailable.

      I will ask my host to install/activate imagick.so and see what happens.
        • 44064
        • 185 Posts
        Anton Tarasov Reply #3, 6 years ago
        Hi insightdes,

        Did this(lib activation I mean) solve your issue?

        Quote from: insightdes at Apr 11, 2018, 12:55 AM
        I found a config.core.php in the web root, and edited the path to MODX_CORE_PATH, and now the front end displays:

        500 Error
        Site temporarily unavailable.

        I will ask my host to install/activate imagick.so and see what happens.
          Anton Tarasov
          MODX Developer

          Email: [email protected]
          Web: antontarasov.com
          • 54187
          • 16 Posts
          Hi Anton,

          The web host said the same PHP modules are installed across each cPanel account.

          So, migrating the site from a dedicated subdomain cPanel account into a subdomain of the main domain cPanel account should not mean there are missing PHP modules.

          Also, the error log no longer reports the missing imagick.so library.

          I receive a 500 internal server error: http://old.insightdesign.com.au/

          Regards,
          Steve

          Quote from: himurovi4 at Apr 15, 2018, 02:55 PM
          Hi insightdes,

          Did this(lib activation I mean) solve your issue?
            • 54187
            • 16 Posts
            How do I turn on debugging?

            I found this page, but it doesn't tell you where to place the code.
              • 54187
              • 16 Posts
              Silly me, the MySQL user did not have permission to use the MySQL db.

              The only problem is to work out why some CSS resources are returning a 404 @ http://old.insightdesign.com.au/
                • 17301
                • 932 Posts
                Looking at your manager page it looks like you have permissions issues on some of the folders and path issues
                  ■ 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.
                  • 54187
                  • 16 Posts
                  Thanks LK,

                  I've chmod all directories to 755 and all files to 644 and the issue remains - there are links to CSS files which link to the incorrect location.
                    • 17301
                    • 932 Posts
                    Still looks like a possible paths and permissions error. Double check you've edited all of the configs and they're all correctly pointing to their respective paths.

                    See here for more details on the files and permissions needed
                    https://docs.modx.com/revolution/2.x/administering-your-site/moving-your-site-to-a-new-server

                    If you still have issues reinstall MODX over the top.
                      ■ 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.
                      • 54187
                      • 16 Posts
                      Thanks LK,

                      I found /connectors/config.core.php & /manager/config.core.php still had the old values. I updated them with new values, but the broken path to CSS remains.

                      I checked and confirmed the other 2 config files were correct.

                      I'll upload a new copy of MODX now. [ed. note: insightdes last edited this post 6 years ago.]