We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27160
    • 50 Posts
    Problems with revolution 2.3.1.

    After installing, I added my admin name, password, email and hit install but did not get a login screen. Instead I got a 500 error: site temporarily unavailable. Tried mysite.com/manager but got the same thing.
    Went back to try to reinstall and it suggests an upgrade, but will not connect to my database when I press the link. (nothing happens)
    If I try new install, it says I need to use a new table prefix, which I don't want to do.
    I've already deleted one database and started over.
    Permissions are set to 755 for directories and 644 for files.

    My OS is Linux Ubuntu.
    php version 5.5.16
    MySQL version is 5.1.73

      Linda Jenkinson
      • 37242 ☆ A M B ☆
      • 339 Posts
      Into the blue (if thats even an english expression): open /core/config/config.inc.php
      Do you see real values or just placeholders in brackets?

      Edit: wrong lead, I guess. If setup tells you to choose another prefix, it can read your database. So it must be something else. Did you try turning off compression for JS and CSS? There must be a checkbox somewhere.
        • 27160
        • 50 Posts
        Quote from: gallenkamp at Sep 15, 2014, 07:12 PM
        Into the blue (if thats even an english expression): open /core/config/config.inc.php
        Do you see real values or just placeholders in brackets?

        Edit: wrong lead, I guess. If setup tells you to choose another prefix, it can read your database. So it must be something else. Did you try turning off compression for JS and CSS? There must be a checkbox somewhere.

        Okay, I figured out I did something real stupid.Uploaded all the directories but forgot to upload the single files. But, another problem has come up now. It says,

        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 know where my timezone is, but I don't know where the php.ini is and Filezilla can't seem to find it. sad
          Linda Jenkinson
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Make a file, call it 'info.php', with this code
          <?php
          phpinfo();

          and put it in your site. Run it from the browser (http://mydomain.com/info.php) and near the top you will see where PHP is getting its php.ini from.
            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
            • 37242 ☆ A M B ☆
            • 339 Posts
            To shorten the process: just disable that time check.

            To do so, open "index.php" in folder "setup". In line 62 it begins:
            /* make sure date.timezone is set for PHP 5.3.0+ users */
            if (version_compare(MODX_SETUP_PHP_VERSION,'5.3.0') >= 0) {
                $phptz = @ini_get('date.timezone');
                if (empty($phptz)) {
                    die('<html><head><title></title></head><body><h1>FATAL ERROR: MODX Setup cannot continue.</h1><p>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 <a href="http://us.php.net/manual/en/timezones.php">here</a>.</p></body></html>');
                }
            }

            Just cut the */ at the end of line 62 and place it at the end of the block like this:
            /* make sure date.timezone is set for PHP 5.3.0+ users 
            if (version_compare(MODX_SETUP_PHP_VERSION,'5.3.0') >= 0) {
                $phptz = @ini_get('date.timezone');
                if (empty($phptz)) {
                    die('<html><head><title></title></head><body><h1>FATAL ERROR: MODX Setup cannot continue.</h1><p>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 <a href="http://us.php.net/manual/en/timezones.php">here</a>.</p></body></html>');
                }
            }*/

            That extends the "comment" and disables the check for the timezone. i have many sites running without this check. It never seemed to play a role.

            That should do it smiley
              • 27160
              • 50 Posts
              Quote from: sottwell at Sep 16, 2014, 07:20 AM
              Make a file, call it 'info.php', with this code
              <!--?php
              phpinfo();

              and put it in your site. Run it from the browser (http://mydomain.com/info.php) and near the top you will see where PHP is getting its php.ini from.-->

              I have that already. It is getting it from /usr/lib/php5.5/php.ini. However, the directories /usr/lib/php5.5 don't show up in the root directory that I see.
              so I made a custom php,ini file and uploaded it to the root directory, the setup directory, and the modx root directory. I have done it with and without quotes on "America/Chicago", but the date.timezone does not show up in my phpinfo.

              Totally frustrated at this point. sad

              By the way, I also made an .htaccess file, but no result there either. [ed. note: shyflower last edited this post 12 years ago.]
                Linda Jenkinson
                • 27160
                • 50 Posts
                I think at this point, I am going to start from scratch one more time. If I can't get it to work, I will have to go with a different cms. I love modx, but the installation gets more and more difficult with each new distribution. After 5 years of this, you'd think it would be easy.. sad
                  Linda Jenkinson
                  • 27160
                  • 50 Posts
                  Quote from: gallenkamp at Sep 16, 2014, 09:21 AM
                  To shorten the process: just disable that time check.

                  To do so, open "index.php" in folder "setup". In line 62 it begins:
                  /* make sure date.timezone is set for PHP 5.3.0+ users */
                  if (version_compare(MODX_SETUP_PHP_VERSION,'5.3.0') >= 0) {
                      $phptz = @ini_get('date.timezone');
                      if (empty($phptz)) {
                          die('<title></title><h1>FATAL ERROR: MODX Setup cannot continue.</h1><p>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 <a href="http://us.php.net/manual/en/timezones.php">here</a>.</p>');
                      }
                  }

                  Just cut the */ at the end of line 62 and place it at the end of the block like this:
                  /* make sure date.timezone is set for PHP 5.3.0+ users 
                  if (version_compare(MODX_SETUP_PHP_VERSION,'5.3.0') >= 0) {
                      $phptz = @ini_get('date.timezone');
                      if (empty($phptz)) {
                          die('<title></title><h1>FATAL ERROR: MODX Setup cannot continue.</h1><p>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 <a href="http://us.php.net/manual/en/timezones.php">here</a>.</p>');
                      }
                  }*/

                  That extends the "comment" and disables the check for the timezone. i have many sites running without this check. It never seemed to play a role.

                  That should do it smiley

                  Thank you. I'll try that as the last step before I start over. Hope it works.
                    Linda Jenkinson
                    • 27160
                    • 50 Posts
                    Quote from: gallenkamp at Sep 16, 2014, 09:21 AM
                    To shorten the process: just disable that time check.

                    No glory. sad
                      Linda Jenkinson
                      • 37242 ☆ A M B ☆
                      • 339 Posts
                      Installation failed or disabling the time check failed? Sometimes you need to upload the files again, because FTP didnt get them all.