15 de juliol del 2014

ERROR: It is not safe to rely on the system's timezone settings (SOLUCIONAT)

En actualitzar la versió del PHP en un dels servidors Apache, em vaig trobar amb l'error: "Warning: date(): It is not safe to rely on the system's timezone settings.".

Sortosament, el problema és fàcil de solucionar. Només cal definir la zona horària en el fitxer php.ini:
$ gksudo gedit /etc/php5/apache2/php.ini


Tot seguit, reiniciem el servidor Apache:
$ sudo service apache2 restart
I problema solucionat !

Cap comentari:

Publica un comentari a l'entrada