We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30734
    • 44 Posts
    Hello everyone, I was hoping someone would have experience with the issue I am getting. I just tried to install modx on our media temple (dv) 4.0 server and when I go to the setup folder to get things rolling i get the following error:
    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 followed the instructions on setting your timezone that media temple gave me and I also used SSH to edit the php.ini file and still no luck. Has anyone had this issue? Or does anyone know how to fix it?

    Thanks!
      • 38290
      • 712 Posts
      Can you create a phpinfo.php file and view it? If so does the time zone look correct. Might want to make sure user group permissions are as they should be also
        jpdevries
      • You also may need to put a custom php.ini file in the setup folder, with the date.timezone setting.

        Keep in mind that custom php.ini files are not inherited across directories, so you'll need one in the site root, one in the /manager/ directory, and one in the /setup/ directory.

        If you are going to check for phpinfo() for the setup, you'll need to run it from the setup directory to see which php.ini file is being loaded for that directory.
          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
          • 30734
          • 44 Posts
          Great! Thanks you two, Ill try this and let you know the result.
            • 30734
            • 44 Posts
            Alright, here is an update. I ran the phpinfo file and found that the thing did have the correct timezone. I checked permissions and everything looked good. I tried adding extra php.ini files to see if that would correct the issue.

            Finally, I happened to go into parallels and look at the php settings and added the timezone to the custom section and it started working. So for anyone using Media Temple (dv) 4.0 it appears the culprit was Parallels. Make sure to add the timezone into the php settings.
              • 38290
              • 712 Posts
              I've run into some frustations with Parallels and MODX (or any for that matter) sites, but once you get passed the initial setup you should be smooth sailing.
                jpdevries