We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43674
    • 3 Posts
    I had this problem trying to install Revolution 2.2.7 with PHP 5.4

    I uploaded a php.ini file to my server root with one line: date.timezone = America/Los_Angeles

    I verified that this changed the php settings by uploading a phpinfo.php file to the server root with one line: <?php phpinfo(); ?>

    I stilled had the error. I tried refreshing the browser but same thing. I then logged onto my ISP which is 1and1.com and I changed the php from 5.4 to 5.2. I went back and refreshed the setup page and it went onto setting it up. No problems. My guess is Revo doesn't like 5.4 but I don't know. Maybe only during the initial setup because I have other Revo install on a different site which is 2.2.5 and it runs fine with 5.4. I believe I set it up when php was at 5.2 but not sure.
      • 37246
      • 128 Posts
      I had a similar issue with a Verio server... swapping to php5.2 worked for me as well.
        I LOVE MODX! | greyskymedia.com
      • MODX Revolution should run great on a properly configured PHP 5.4 installation.
          • 43374
          • 39 Posts
          Found a solution here

          http://cmanios.wordpress.com/2013/03/05/change-timezone-to-apache-server-and-php/

          I have installed XAMPP in my Windows machine and I want to alter the timezone in Apache HTTP server, PHP module and MySql in order to see proper dates in server error.log, access.log and php_error_log output.

          After some searching I found the solution:
          1. In httpd.conf (\xampp\apache\conf\httpd.conf) , add the following line:

          # Set timezone to Europe/Athens UTC+02:00
          SetEnv TZ Europe/Athens



          2. Edit php.ini (\xampp\php\php.ini) date.timezone value in [Date] section:
          date.timezone = "Europe/Athens"



          You can find the available PHP timezones in http://php.net/date.timezone
          3. In my.ini (\xampp\mysql\bin\my.ini) add or replace
          default-time-zone = "Europe/Athens"



          Now restart Apache HTTP and MySQL server and you are done!
          • Quote from: miz at Mar 07, 2011, 08:58 AM
            hi guru,

            add

            php_value date.timezone 'Europe/Berlin'


            to the .htaccess file.
            Worked for me.


            Put this line below at the top of the file below:

            ini_set('date.timezone', 'Europe/Oslo'); // replace Europe/Oslo with your own timezone
            Insert this statement in the following MODx-files somewhere near the top of the files:

            ./setup/index.php
              Tony Porto | Valpo Creative | http://www.valpocreative.com
              • 3749
              • 24,544 Posts
              You can also set the MODX date_timezone System Setting to whatever timezone is appropriate (e.g., Europe/Berlin).
                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
                • 30498
                • 30 Posts
                Had the same issue 2.2.10pl on php 5.4.4-14
                Server doesn't allow custom php.ini and apparently timezone isn't set correctly

                So i Changed line 63 of the setup/index.php file:
                $phptz = @ini_get('date.timezone');
                into
                $phptz = 'Europe/Amsterdam' ;

                Like a charm.

                  • 51321
                  • 1 Posts
                  Quote from: Towila at Dec 19, 2013, 10:25 PM

                  So i Changed line 63 of the setup/index.php file:
                  $phptz = @ini_get('date.timezone');
                  into
                  $phptz = 'Europe/Amsterdam' ;

                  This worked for me, too. Simple, but great solution, thank you!