(SOLVED)ZoneMinder is not installed properly: php's date.timezone is not set to a valid timezone

Forum for questions and support relating to the 1.29.x releases only.
Locked
Zmptz
Posts: 38
Joined: Thu Dec 10, 2015 9:08 am

(SOLVED)ZoneMinder is not installed properly: php's date.timezone is not set to a valid timezone

Post by Zmptz »

Hi guys
Has any one come across this problem where your zoneminder webpage only displays this:ZoneMinder is not installed properly: php's date.timezone is not set to a valid timezone
Even when I've changed these two files etc/php5/apache2/php.ini and cli/php.ini
I have reinstalled acpache2, php5, and zoneminder with no luck.
I have the system working before but only changed the document root and then reinstall, Because i wanted to open zoneminder by localhost only (or ip address).

Is there any find i need to change to Europe/London or to load apache2 php.ini

when i do sudo php -i | grep 'Configuration File'
Configuration File (php.ini) Path => /etc/php5/cli
Loaded Configuration File => /etc/php5/cli/php.ini

how can i load apache2 php.ini configuration?
Last edited by Zmptz on Fri Apr 01, 2016 11:38 pm, edited 2 times in total.
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: ZoneMinder is not installed properly: php's date.timezone is not set to a valid timezone

Post by bbunge »

What Linux are you using? If Ubuntu there are usually two php.ini files.

If you are using Ubuntu see: https://wiki.zoneminder.com/Ubuntu#Guid ... ntu_Server
Zmptz
Posts: 38
Joined: Thu Dec 10, 2015 9:08 am

Re: ZoneMinder is not installed properly: php's date.timezone is not set to a valid timezone

Post by Zmptz »

Ubuntu Server 15.04 or 15.10 64-bit with Zoneminder 1.29.0 the easy way

I tried the setting above I get error with mysql when entering password

Code: Select all

mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
Enter password: 
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

mysql -uroot -p -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"
Enter password: 
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

mysqladmin -uroot -p reload
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: 
also before i changed both php.ini files in directory in etc/php5/apache2 and etc/php5/cli

Code: Select all

 php --ini
Configuration File (php.ini) Path: /etc/php5/cli
Loaded Configuration File:         /etc/php5/cli/php.ini
Scan for additional .ini files in: /etc/php5/cli/conf.d
Additional .ini files parsed:      /etc/php5/cli/conf.d/05-opcache.ini,
/etc/php5/cli/conf.d/10-pdo.ini,
/etc/php5/cli/conf.d/20-gd.ini,
/etc/php5/cli/conf.d/20-json.ini,
/etc/php5/cli/conf.d/20-mysql.ini,
/etc/php5/cli/conf.d/20-mysqli.ini,
/etc/php5/cli/conf.d/20-pdo_mysql.ini,
/etc/php5/cli/conf.d/20-readline.ini
I still get the same message "ZoneMinder is not installed properly: php's date.timezone is not set to a valid timezone"
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: ZoneMinder is not installed properly: php's date.timezone is not set to a valid timezone

Post by bbunge »

You need to use the MySQL "root" password which may be different from your user password. Remember, you were prompted to set it when you installed Ubuntu and selected LAMP from tasksel?

Does your php.ini entry look like this?

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/New_York

Note that you have to remove the ";" before date.timezone...

I have run installs with these instructions several times in the past couple of days. Relax, read and follow the instructions and start over!
Zmptz
Posts: 38
Joined: Thu Dec 10, 2015 9:08 am

Re: ZoneMinder is not installed properly: php's date.timezone is not set to a valid timezone

Post by Zmptz »

Thanks bbunge you done it, it the ; in front of the date.time zone once I removed this and reloaded the apache the site was access and just how I left it. Hm even after I reinstalled ZM.
Thank you

Next I guess will be to sort the MySQL root password. Is there away in resetting without reinstalling?
And also the zoom function for PelcoP.pm this has been bugging me the most.
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: ZoneMinder is not installed properly: php's date.timezone is not set to a valid timezone

Post by bbunge »

Google is your friend for mysql questions...
Locked