Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change to php.ini does not have effect

Tags:

timezone

php

ini

I added this line to my php.ini file: date.timezone = "Europe/Rome".

But phoinfo() still show me this: date.timezone America/Phoenix America/Phoenix.

Where I'm wrong?

like image 930
Egidio Caprino Avatar asked Dec 21 '22 11:12

Egidio Caprino


2 Answers

Did you restart your web server? php.ini is only evaluated when the server starts up.

like image 101
Jim Avatar answered Dec 24 '22 02:12

Jim


You have to restart Apache (or whatever server you use).

like image 44
user703016 Avatar answered Dec 24 '22 00:12

user703016