We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16670
    • 3 Posts
    Hi

    I just installed MODx 1.0.3 on Ubuntu 10.04 Lucid Lynx notebook with PHP 5.3.2, MySQL 5.1.41 and Apache 2.2.14. I get this message when I attempt to go to http://localhost/manager:

    "Could not load DBAPI class."

    Am I missing something? MODx is installed in the /var/www/ directory. There were no problems during the installation.

    Thanks very much.
      • 36404
      • 307 Posts
      hi,

      is localhost the name you’ve given to the website when installing modx ?

      have swing
        réfléchir avant d'agir
        • 28554
        • 201 Posts
        Quote from: virtualgadjo at Jun 06, 2010, 02:23 AM

        hi,

        is localhost the name you’ve given to the website when installing modx ?

        have swing

        localhost is actually your own machine (http://localhost or http://127.0.0.1). Can’t help you with the problem though, but I’m sure someone else can smiley
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Localhost is the most common "hostname" for the database; it’s relative to where the MySQL server is to the PHP script accessing it. For example, my local XAMPP uses "localhost", and so does my remote Solaris VPS in California since the Apache server and the MySQL server are on the same physical server.
            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
            • 3749
            • 24,544 Posts
            Quote from: larryb at Jun 05, 2010, 08:23 PM

            Hi

            I just installed MODx 1.0.3 on Ubuntu 10.04 Lucid Lynx notebook with PHP 5.3.2, MySQL 5.1.41 and Apache 2.2.14. I get this message when I attempt to go to http://localhost/manager:

            "Could not load DBAPI class."

            Am I missing something? MODx is installed in the /var/www/ directory. There were no problems during the installation.

            Thanks very much.

            It’s possible that one or more files were missed or corrupted in the download/upload process.

            This is the line that is failing:

            include_once MODX_BASE_PATH . 'manager/includes/extenders/dbapi.' . $database_type . '.class.inc.php')


            See if the file: manager/includes/extenders/dbapi.mysql.class.inc.php exists.
              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
              • 16670
              • 3 Posts
              The file is present and seems to have the correct content. How is MODX_BASE_PATH set?
                • 3749
                • 24,544 Posts
                MODX_BASE_PATH is set in manager/includes/config.inc.php


                Do you have friendly URL’s turned on? If so, make sure to rename ht.access to .htaccess in the /manager folder.
                  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
                  • 16670
                  • 3 Posts
                  I don’t know what happened during or after the install, but my config.inc.php file was empty. I reinstalled with a fresh copy of MODx and it works like a charm.

                  Thanks for your help.
                    • 3749
                    • 24,544 Posts
                    That would do it. wink

                    Glad you got it sorted.
                      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