InValid TimeZone
InValid TimeZone
Hi, Everyone,
Is there anybody that can help me regarding 1.29 version.Below is the error when I connect on the browser. I changed already the timezone but still the same.I'm using Unbuntu LTS16.04 Server
ZoneMinder is not installed properly: php's date.timezone is not set to a valid timezone
Thanks
Is there anybody that can help me regarding 1.29 version.Below is the error when I connect on the browser. I changed already the timezone but still the same.I'm using Unbuntu LTS16.04 Server
ZoneMinder is not installed properly: php's date.timezone is not set to a valid timezone
Thanks
Re: InValid TimeZone
There are a couple of php.ini files. Check if you have edited the correct one by searching them using the command:
find / -name php.ini
Regards,
PacoLM
find / -name php.ini
Regards,
PacoLM
After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
Re: InValid TimeZone
I tried to change all the settings (timezone) of php.ini but the problem still the same.
ZoneMinder is not installed properly: php's date.timezone is not set to a valid timezone
OS : Unbuntu LTS 16.04
Zoneminder : 1.29
Thanks
ZoneMinder is not installed properly: php's date.timezone is not set to a valid timezone
OS : Unbuntu LTS 16.04
Zoneminder : 1.29
Thanks
-
- Posts: 494
- Joined: Sun Jun 29, 2014 1:12 pm
- Location: Melbourne, AU
Re: InValid TimeZone
So assuming you have a standard 16.04 install of PHP, run this and post the results please.
Code: Select all
cat /etc/php/7.0/apache2/php.ini | grep 'date.timezone ='
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
Random Selection of Cameras (Dahua and Hikvision)
Re: InValid TimeZone
Below it appear when I run your command.
date.timezone = Asia/Muscat
date.timezone = Asia/Muscat
-
- Posts: 494
- Joined: Sun Jun 29, 2014 1:12 pm
- Location: Melbourne, AU
Re: InValid TimeZone
Looks good, just making sure no ; in front and is a valid timezone.
Restarted apache? service apache2 reload
After that you are going to have to investigate your PHP setup using phpinfo(), mainly looking for exactly which php.ini file your install is using.
Restarted apache? service apache2 reload
After that you are going to have to investigate your PHP setup using phpinfo(), mainly looking for exactly which php.ini file your install is using.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
Random Selection of Cameras (Dahua and Hikvision)
Re: InValid TimeZone
Hi Steve,
do you have the link for installation for this Zoneminder 1.29 on Unbuntu LTS 16.04? I tried to change all the timezone in each php but still the same.
Thanks
do you have the link for installation for this Zoneminder 1.29 on Unbuntu LTS 16.04? I tried to change all the timezone in each php but still the same.
Thanks
-
- Posts: 494
- Joined: Sun Jun 29, 2014 1:12 pm
- Location: Melbourne, AU
Re: InValid TimeZone
Like install guide https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
Random Selection of Cameras (Dahua and Hikvision)
Re: InValid TimeZone
I have the same problem. I did not have this issue with 15.10. I have 3 php.ini files. all have been set identically. the one my system uses is located in the cli subfolder (/etc/php/7.0/cli) I have restarted apache using sudo service apache2 restart but still the issue remains. any ideas?SteveGilvarry wrote:Looks good, just making sure no ; in front and is a valid timezone.
Restarted apache? service apache2 reload
After that you are going to have to investigate your PHP setup using phpinfo(), mainly looking for exactly which php.ini file your install is using.
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/Chicago
-
- Posts: 494
- Joined: Sun Jun 29, 2014 1:12 pm
- Location: Melbourne, AU
Re: InValid TimeZone
Are you using nginx? Because my fresh 16.04 build is using /etc/php/7.0/apache2/php.ini.
I would be checking where it is coming from using a phpinfo() test page, as your string is correct.
I would be checking where it is coming from using a phpinfo() test page, as your string is correct.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
Random Selection of Cameras (Dahua and Hikvision)
Re: InValid TimeZone
I am using apache not nginx. I already used phpinfo() which is what shows /etc/php/7.0/cli/php.ini as the one being used although I have modified all 3 php.ini files just in case.
-
- Posts: 494
- Joined: Sun Jun 29, 2014 1:12 pm
- Location: Melbourne, AU
Re: InValid TimeZone
I can't help but think something is wrong with your apache. CLI is PHP command line, not the apache PHP module. Check that you have libapache2-mod-php7.0 installed and apache has the module enabled.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
Random Selection of Cameras (Dahua and Hikvision)
Re: InValid TimeZone
Try to restart the MySQL server. This timezone problem I keep running across and have not quite found the cause...but restarting the mysql server after the errors occurred fixed it.. By me it is the causing problems viewing events.
Re: InValid TimeZone
I do have that installed and enabled. I just tried installing from scratch again using the guide and get same issue. never had this with 15.10 so not sure what the problem is but apparently I just can't use zoneminder any longer.SteveGilvarry wrote:I can't help but think something is wrong with your apache. CLI is PHP command line, not the apache PHP module. Check that you have libapache2-mod-php7.0 installed and apache has the module enabled.
Re: InValid TimeZone
ok, I found a workaround. still don't know what the actual problem is but I commented out the check line in the index.php in /usr/share/zoneminder folder by adding the 3 sets of // and then the { just below it. now I can get to the web interface. still no idea what in that line is the problem but at least I have access.
// Check time zone is set
// if (!ini_get('date.timezone') || !date_default_timezone_set(ini_get('date.timezone'))) {
// date_default_timezone_set('UTC');
// Fatal( "ZoneMinder is not installed properly: php's date.timezone is not set to a valid timezone" );
{
// Check time zone is set
// if (!ini_get('date.timezone') || !date_default_timezone_set(ini_get('date.timezone'))) {
// date_default_timezone_set('UTC');
// Fatal( "ZoneMinder is not installed properly: php's date.timezone is not set to a valid timezone" );
{