Problems with timezones?

So here I am trying to install modx revolution on a Virtual LAMP server hosted somewhere outside my home.

After setting up the basic things on the VPS such as Apache2, MySQL-server and the such I download modx revolution, crete a database for it and go to the setup page only to be greeted by this:

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.

Thanx for that curveball..
After a bit of googling you learn that you need to set up you date and timezones properly sure enough you type
dpkg-reconfigure tzdata
and set your timezone, but it still doesn’t work so you figure out that you need to edit your php.ini because as of PHP5.3 the timezone isn’t set by default in php.ini anymore. Fine..

find / -name php.ini


so you edit them all adding the line
ini_set('date.timezone', 'Europe/Stockholm');
under the Date section in your php.ini files and it still doesn’t work..?!?! WTF?!

Seems to work for a lot of other people but not for you?! I don’t know why but what you can do is to add the following
ini_set('date.timezone', 'Europe/Stockholm');
assuming that it is modx you’re working on..
(Thank you mvladk for helping me with this solution)
This issue is not a modx specific issue and unfortunatly I don’t know how to solve the real issue so I have had to accept this solution instead.

Posted in IT, Linux | Tagged , , , , , | 2 Comments

How to check the version on your Ubuntu server

Do you have a virtual private server (VPS) somewhere and want to know exactly what version of Ubuntu you’re running?

From your termnial type:
cat /etc/lsb-release
for me that returns the following


So, is it a 32-bit system or a 64 bit system?
uname -m
in my case it says i686 which means it is a 32-bit system.
If it says x86_64 then you have a 64 bit system.

Posted in IT, Linux | Tagged , , | Leave a comment