Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

date.timezone = America/Phoenix not recognized #391

Open
trevorpan opened this issue Aug 21, 2018 · 4 comments
Open

date.timezone = America/Phoenix not recognized #391

trevorpan opened this issue Aug 21, 2018 · 4 comments

Comments

@trevorpan
Copy link

new to Scotch Box and I really like what you've done!

Trying to install SilverStripe CMS, got Scotch working and the install screen says:

Your php.ini file is located at /etc/php/7.0/apache2/php.ini

The php.ini says:

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

Another developer suggested adding phpinfo(); to the install.php page.
It points to the same php.ini file.

But.. says:

date.timezone | no value

Any ideas of where to find an additional php.ini file? Thank you ~

@whatnickcodes
Copy link
Member

whatnickcodes commented Aug 22, 2018 via email

@trevorpan
Copy link
Author

trevorpan commented Aug 22, 2018

Hi Nicholas,

Thank you.

The Scotch Box version is the latest available as of 3 days ago.

SS is version 4.2.1.
SilverStripe php requirements are 7.0+
https://docs.silverstripe.org/en/4/getting_started/server_requirements/

@clotted
Copy link

clotted commented Aug 22, 2018

This may help:
https://stackoverflow.com/questions/34852499

Eg. Try looking for: /etc/php/7.0/cli/php.ini

@trevorpan
Copy link
Author

Hi clotted,
Thank you for that post. I had run through that one already. But tried this line again:

php -i | grep php\.ini

Which gave:
Loaded Configuration File => /etc/php.ini

; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/Phoenix

There's something weird going on, and I'm at a loss of what to do. Also, retried the sudo chmod 777 /etc/php.ini and restarted apache....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants