We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7253
    • 97 Posts
    I had this exact same problem installing 2.0.5-pl - except on Ubuntu.

    Files and folders are all there. I manually run through all the checks in /setup/includes/modinstall.class.php, ’public function findCore()’,in a ’[tt]php -a[/tt]’ shell, they all pass, returning 1:

    [tt]echo file_exists(’/home/duncan/www/modx_revolution/casino4mobile/core/’);
    1
    echo is_dir(’/home/duncan/www/modx_revolution/casino4mobile/core/’);
    1
    echo file_exists(’/home/duncan/www/modx_revolution/casino4mobile/core/’ . ’xpdo/xpdo.class.php’);
    1
    echo file_exists(’/home/duncan/www/modx_revolution/casino4mobile/core/’ . ’model/modx/modx.class.php’);
    1[/tt]

    Then I thought, maybe this is permissions related - ’[tt]php -a[/tt]’ shells will run with my permissions, I think?

    This page (http://rtfm.modx.com/display/revolution20/Advanced+Installation) says that the ’[tt]/core[/tt]’ folder needs to be readable and the ’[tt]/core/cache[/tt]’ needs to be writeable by php - which I don’t think it was before. Changed that like this and that fixed it:

    [tt]sudo chmod -R 0755 ${SITE_FOLDER}/core/
    sudo chmod -R 0777 ${SITE_FOLDER}/core/cache/[/tt]

    The rest of the installer then proceeded fine and installed. I got to the last but which offers to remove the ’[tt]/setup[/tt]’ folder and then redirects you to the manager, clicked Ok - and got a blank screen. sad

    After poking around for a while in the newly installed folders and DB to make sure there was nothing obvious missing, I just did this:

    [tt]sudo chmod 0777 -R ${SITE_FOLDER}/[/tt]

    and that seemed to sort it - I’m now logged into the manager and everything seems to be working fine. I know that’s not a great idea, but I was getting fed up by that point. Is there documentation somewhere which lists what permissions need to be set to what for revo? Just the output from ’[tt]tree -dp[/tt]’ in the root of an ideally setup revo install would be great.
      • 22303 MODX Staff
      • 10,725 Posts
      The installer informs you of most permissions issues itself, so I’m not sure what you did TBH. You’ll have to provide details about your php configuration for us to assist in diagnosing what’s wrong with it.
        • 19252
        • 9 Posts
        I am trying to do a fresh install of revo 2.0.6 and am getting the same error:

        Your MODX_CORE_PATH is invalid

        Tried changing the permissions on /core/ & /core/cache/ and still encounter the same problem. I KNOW the path is correct. The server I am installing on is running Apache. Any thoughts?

        Judith
          • 22303 MODX Staff
          • 10,725 Posts
          It let’s you edit the path if it’s wrong, or if the file is not writable by the web server, it tells you how to go about editing it with the proper path.
            • 35491
            • 18 Posts
            The same problem
            Nothing help, all permissions checked

            (((
              • 3749
              • 24,544 Posts
              Quote from: millerfortime at May 13, 2011, 12:55 PM

              The same problem
              Nothing help, all permissions checked

              (((

              Look at all the paths set in the core/config/config.inc.php file and make sure they are correct.
                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
                • 35491
                • 18 Posts
                Ubuntu 10.10
                apache 2.2.16
                mysql 5.1.49
                php 5.3.3
                nginx 0.7.67

                first of all
                ht.access --> php_value date.timezone Europe/Moscow and php.ini ---> date.timezone = Europe/Moscow, then modified ht.access --> .htaccess

                then checked all permissions

                path is var/www/example.com/public_html/core

                var --> 0775
                www --> 0775
                example.com --> 0775
                public_html --> 0775
                core/cache -->0777
                core/export -->0777
                core/packages -->0777

                made empty inc.php

                nano core/config/config.inc.php, --> 0666

                that’s right?

                then I tried to modified config.inc.php

                <?php                                                                                                                                                                                                              
                define('MODX_CORE_PATH', dirname(__FILE__) . '/var/www/example.com/public_html/core/');                                                                                                                                                            
                define('MODX_CONFIG_KEY', 'config');


                hah it works before i had tried to modify index.php and config.core.php

                thanx





                  • 35491
                  • 18 Posts
                  FATAL ERROR: MODx Setup cannot continue.

                  Make sure your PHP session configuration is valid and working.

                  Apache Log

                  PHP Fatal error: Class ’xPDODriver_’ not found in /var/www/example.com/public_html/core/xpdo/xpdo.class.php

                  I must install PDO driver?
                    • 35491
                    • 18 Posts
                    one more problem, I just want to do advanced install, but when I open setup i see

                    FATAL ERROR: MODx Setup cannot continue.

                    To use PHP 5.3.0+, you must set the date.timezone setting in your php.ini. Please do set it to a proper timezone before proceeding. A list can be found here.


                    I changed php.ini

                    date.timezone = Europe/zone

                    restarted apache service but nothing changed

                    any tips?


                      • 1169
                      • 312 Posts
                      Sometimes there are more than one php.ini file.
                      You have to find the right one.
                        DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31