We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30083
    • 5 Posts
    I uploaded Revolution RC-1 to my Site5 shared server and when I attempted to install, it gave the following error:

    FATAL ERROR: MODx Setup cannot continue.

    * MODx requires the PDO extension when native PDO is being used and it does not appear to be loaded.
    * MODx requires the pdo_mysql driver when native PDO is being used and it does not appear to be loaded.

    The server information is as follows:

    Hostname bryett.site5.com
    Operating system Linux
    Linux kernel version 2.6.27-grsec4
    Apache version 2.2.11
    Perl version 5.8.8 (more info)
    PHP version (more info)
    MySQL version 5.0.89-community-log
    Path to Perl /usr/bin/perl
    Path to sendmail /usr/sbin/sendmail

    Here is the configuration, which indicates that pdo extensions are enabled, yet Revolution install seems to think they are not there.

    Any help would be appreciated.

    Configure Command ’./configure’ ’--enable-bcmath’ ’--enable-calendar’ ’--enable-exif’ ’--enable-ftp’ ’--enable-gd-native-ttf’ ’--enable-libxml’ ’--enable-magic-quotes’ ’--enable-maintainer-zts’ ’--enable-mbstring’ ’--enable-pdo=shared’ ’--enable-soap’ ’--enable-sockets’ ’--enable-wddx’ ’--enable-zip’ ’--prefix=/usr’ ’--with-bz2’ ’--with-curl=/opt/curlssl/’ ’--with-freetype-dir=/usr’ ’--with-gd’ ’--with-gettext’ ’--with-imap=/opt/php_with_imap_client/’ ’--with-imap-ssl=/usr’ ’--with-jpeg-dir=/usr’ ’--with-kerberos’ ’--with-libexpat-dir=/usr’ ’--with-libxml-dir=/opt/xml2’ ’--with-libxml-dir=/opt/xml2/’ ’--with-mcrypt=/opt/libmcrypt/’ ’--with-mhash=/opt/mhash/’ ’--with-mysql=/usr’ ’--with-mysql-sock=/var/lib/mysql/mysql.sock’ ’--with-mysqli=/usr/bin/mysql_config’ ’--with-openssl=/usr’ ’--with-openssl-dir=/usr’ ’--with-pdo-mysql=shared’ ’--with-pdo-sqlite=shared’ ’--with-png-dir=/usr’ ’--with-pspell’ ’--with-sqlite=shared’ ’--with-ttf’ ’--with-xmlrpc’ ’--with-xpm-dir=/usr/X11R6’ ’--with-xsl=/opt/xslt/’ ’--with-zlib’ ’--with-zlib-dir=/usr’

      • 22303 MODX Staff
      • 10,725 Posts
      Revolution requires PDO and a PDO_mysql driver to be enabled in the PHP configuration. BTW, your PHP version is blank...
        • 30083
        • 5 Posts
        Sorry about the blank for PHP. It is PHP Version 5.2.8

        Also, the configuration information seems to indicate that PDO is enabled and also the mysql_pdo

        ’--enable-pdo=shared’
        ’--with-pdo-mysql=shared’
        ’--with-pdo-sqlite=shared’

        I’m not really an expert at reading the PHP information but wouldn’t that indicate that it is installed? If it is installed, can you think of any configuration issue (file permissions, .htaccess issues, etc.) that would prevent the Revolution installation from being able to access the pdo drivers?

        Thanks.
          • 30083
          • 5 Posts
          This is now resolved. I asked my ISP, Site5, for help and they created a php.ini file with the following parameters:

          extension=pdo.so
          extension=pdo_sqlite.so
          extension=sqlite.so
          extension=pdo_mysql.so

          That did the trick. Modx Revolution installed very quickly with no errors after that change was made.

          Regards,
            • 32699 ☆ A M B ☆
            • 427 Posts
            Glad to see you got it working. You are like the third person in as many weeks from Site5 with that issue. I do not know why anyone would not simply enable all of the requirements as a default config. I don’t know anything that Revo is using that is not considered somewhat standard -- and has been for some time.
              Get your copy of MODX Revolution Building the Web Your Way http://www.sanitypress.com/books/modx-revolution-building-the-web-your-way.html

              Check out my MODX || xPDO resources here: http://www.shawnwilkerson.com
              • 1343 ☆ A M B ☆
              • 2,213 Posts
              It’s interesting you’ve noticed issues with Site5, I was able to install RC1 (Advanced) without any special settings. Do you know what server your on by any chance?
                Patrick | Server Wrangler
                About Me: Website | Tweets |  MODX Hosting
                • 30083
                • 5 Posts
                I am on Bryett.