My server time seems to be off on my Apache2 install, how do i fix this? Just running purely "date" in terminal returns the right time but im not sure how to login to apache2 and change it? This is on my local Desktop LAMP stack btw...
My server time seems to be off on my Apache2 install, how do i fix this? Just running purely "date" in terminal returns the right time but im not sure how to login to apache2 and change it? This is on my local Desktop LAMP stack btw...
PHP by default reports the current time in UTC (GMT) but in Debian & Ubuntu, it should instead be using the system time. Try running the phpinfo script by saving this text in
var/www/phpinfo.php
and then accessing http://localhost/phpinfo.php.The date section of this info page should tell you what timezone PHP is set to use.