We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    MODx provides the ht.access file so that it won’t conflict with an existing configuration; if you want to use it you either copy/paste the relevant parts to an existing .htaccess file, or rename ht.access to .htaccess.
      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
      • 6369
      • 18 Posts
      How does the .htaccess file cause the problem I am having just to start installing modx? huh
        • 3749
        • 24,544 Posts
        It really shouldn’t. Try making sure there is an .htaccess file in the manager folder and it has this line (uncommented):

        RewriteEngine Off


        Also, check the config.core.php file in the setup/includes directory and make sure the first line is pointing to the true location of the core directory.
          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
          • 6369
          • 18 Posts
          The .hpconfig file was hp.config so I changed it.
          Thefirst line of the other file says

          define (’MODX_CORE_PATH’, MODX_INSTALL_PATH . ’core/’);

          Define means a constant. can you tell me what this line means?
            • 3749
            • 24,544 Posts
            That line is defining the MODX_CORE_PATH so setup can find the files.

            MODX_INSTALL_PATH is set in the setup/index.php file to the directory above the setup directory (which should contain setup, core, manager, etc.).

            The right side of the line just tacks ’core/’ onto the end of the MODX_INSTALL_PATH so MODx knows where the core is.

            Let’s back up.

            Look in your public_html directory.

            You should see the following directories:

            connectors/
            manager/
            core/
            setup/

            along with three files:

            config.core.php
            ht.access
            index.php

            Is that what you see?

              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
              • 6369
              • 18 Posts
              Everything exept the assets directory? undecided
                • 6369
                • 18 Posts
                Managed to get to the modx install but stuck settinng up daabase.
                have alreaady set up on server and double checked input fields are correct?

                Connecting to mysql server:
                Could not connect to the database server. Check the connection properties and try again.

                [2011-01-22 02:55:47] (ERROR in xPDO::connect @ /home/wemyssw1/public_html/core/xpdo/xpdo.class.php : 331) SQLSTATE[28000] [1045] Access denied for user ’wemyssw1_modx’@’localhost’ (using password: YES)

                [2011-01-22 02:55:47] (ERROR in xPDO::connect @ /home/wemyssw1/public_html/core/xpdo/xpdo.class.php : 331) SQLSTATE[28000] [1045] Access denied for user ’wemyssw1_modx’@’localhost’ (using password: YES)


                - Checking MySQL server version:
                - Checking MySQL client version:
                Connection character set:
                Collation:

                → Create or test selection of your database.

                Checking database:

                Default Admin User

                Now you’ll need to enter some details for the main administrator account. You can fill in your own name here, and a password you’re not likely to forget. You’ll need these to log into Admin once setup is complete.
                Administrator username:
                Administrator email:
                Administrator password:
                Confirm password:

                  • 3749
                  • 24,544 Posts
                  Sorry, the assets directory is not there to begin with. It usually created very shortly by an add-on component.

                  It looks like you’re getting pretty close.

                  There are only a few things that could be causing your current problem:

                  Incorrect database name
                  Incorrect DB username
                  Incorrect DB password.

                  Did you create a database yourself for MODx to use? (sometimes you have to).

                  Did you create a DB user for that database with full rights?

                  Note that sometimes the DB-name and/or username are not the ones you entered when creating the DB. Many hosts add a prefix.

                    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
                    • 6369
                    • 18 Posts
                    Nothing wrong with the database I set up! I contacted my host and they sorted it but didn’t tell me what was wrong?
                    Thanks very much for your help. Hope I can help others once I get my head around things. If nobody gives, nobody recieves!!
                      • 3749
                      • 24,544 Posts
                      Quote from: daleylife at Jan 23, 2011, 12:24 PM

                      Nothing wrong with the database I set up! I contacted my host and they sorted it but didn’t tell me what was wrong?
                      Thanks very much for your help. Hope I can help others once I get my head around things. If nobody gives, nobody recieves!!

                      I’m glad you got it sorted.

                      Welcome to MODx. tongue
                        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