Ok I have a VPS running Ubuntu Server 12.10 32Bit and I need to set the timezone in my PHP.ini file so my PHP Script's time and date features will work (I am trying to setup ModX) I have tried to go to /etc/php5 and change it in different files and it won't work. How do I change PHP's timezone. Also everything in the .ini file has a ; in front of it is that a comment or what? Also I forgot to mention that my webserver in installed via tasksel as LAMP.
find your php.ini and change the value of
Edit(Thanks to @awashburn for his comment): the php-cli's php.ini file is different then apache2's php.ini file. I suggest symbolic linking one to another to keep them in sync and avoid confusion!