We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53390
    • 42 Posts
    I have the current installation in my "localhost/website/". I was trying to upgrade with a newer version which (installation pkg) is in localhost/website/modx-2.5.7-pl/". It allows me to make a new installation but upgrade options are inactive. I couldn't quickly find information about upgrading and specifically where should old website reside and where a new installation package should be placed?
      • 3749
      • 24,544 Posts
      This is a common mistake. Unzipping the MODX .zip file in your MODX root, puts all the files in that subdirectory, which is the wrong place for them.

      You can just copy the files in that subdirectory to the MODX root (the one with the manager and connectors folders), then delete that modx-2.5.7-pl directory.

      Or you can see this page for a method that will avoid that.

      Once you get the Manager working, you can install the UpgradeMODX extra which will put all files in the right place for you.

      BTW, you did upgrade to 2.5.0 first, right? It's not a good idea to skip the major versions (the ones ending in .0).
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 53390
        • 42 Posts
        The thing is that I don't have any custom website yet so nothing to destroy, damage or overwrite and the cms was installed first time from the newest available version which was 2.5.6. There were no 2.5.0 or other versions before.
        So, I copied all files to modx website root. When I go to http://localhost/website/setup I get MODx installation page click Next and it gives me options for installation with Upgrade previous installation automatically chosen for me (as I understand it recognizes that a version is already installed) but once I click next to proceed it shows the same modx error page with a red square "Site temporarily unavailable." and the same if I navigate directly to /manager page in my browser.
        Logs have the same errors. Sections are like:

        SQLSTATE[HY000] [1524] Plugin '*8A7B6434E05B95703CD63D817E7F35EF3D57BE00' is not loaded
        
        Could not construct or prepare query because it is invalid or could not connect: SELECT `modSystemSetting`.`key` AS `modSystemSetting_key`, `modSystemSetting`.`value` AS `modSystemSetting_value`, `modSystemSetting`.`xtype` AS `modSystemSetting_xtype`, `modSystemSetting`.`namespace` AS `modSystemSetting_namespace`, `modSystemSetting`.`area` AS `modSystemSetting_area`, `modSystemSetting`.`editedon` AS `modSystemSetting_editedon` FROM `modx_system_settings` AS `modSystemSetting` 

          • 3749
          • 24,544 Posts
          This is all I could find on MODX and EasyPHP: https://forums.modx.com/thread/9899/partially-solved-problem-when-installing-modx-in-a-usb-key-within-easyphp.

          It might be time to try XAMPP. It's much more common among MODX users.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 53390
            • 42 Posts
            Installed XAMPP successfully, but can't even install MODx.
            I kept getting charset errors first time, did second installation again now this comes up.
            It says
            Could not connect to the database server. Check the connection properties and try again.
            ERROR in xPDOConnection::connect @ C:\xampp\htdocs\website\core\xpdo\xpdo.class.php : 3116) SQLSTATE[HY000] [1045] Access denied for user 'dbuser'@'localhost' (using password: YES) 


              • 3749
              • 24,544 Posts
              That almost always means that the DB username and/or password in core/config/config.inc.php is not correct, or that you haven't created a DB user with full rights for the DB.
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 53390
                • 42 Posts
                "core/config" directory is empty in the MODx installation package. No such file config.inc.php Tried to create an empty file but still noluch.
                Username and password given correct, all privileges for the database. I even tried to delete and create a database and a user again but no change.
                  • 3749
                  • 24,544 Posts
                  You need to run Setup to create the config.inc.php file. Is the the /setup directory still there? It's deleted by default if you ran setup earlier.

                  Setup asks you for the DB credentials before trying to connect to the DB. It doesn't create config.inc.php until later. Are you seeing the form asking for the DB name?

                    Did I help you? Buy me a beer
                    Get my Book: MODX:The Official Guide
                    MODX info for everyone: http://bobsguides.com/modx.html
                    My MODX Extras
                    Bob's Guides is now hosted at A2 MODX Hosting
                    • 53390
                    • 42 Posts
                    Yes. The DB setup page is the one that fails. In both, EasyPHP and XAMPP it can't create username and database so I need to create it manualy via phpMyAdmin. In EasyPHP, it used to work but XAMPP doesn't seem to recognize user name or password. Setup folder is there. By the way it's a fresh new installation in a new physical location. I was thinking about config directory write permissions. In EasyPHP it used to work and install everything but in XAMPP it may be an issue that it can't ceate a file because of permission issue? My local XAMPP konsole doesn't recognize chmod as a command. Normally, on Windows, for easyPHP I used to go to folder properties and remove Read Only for cache and config, did on XAMPP the same.
                      • 3749
                      • 24,544 Posts
                      Permissions are almost never a problem on Windows, though I suppose it's possible. This is a very old page, but you might find something helpful there: https://bobsguides.com/xampp.html.
                        Did I help you? Buy me a beer
                        Get my Book: MODX:The Official Guide
                        MODX info for everyone: http://bobsguides.com/modx.html
                        My MODX Extras
                        Bob's Guides is now hosted at A2 MODX Hosting