scotch-io / scotch-box

Scotch Box is a preconfigured Vagrant Box with a full array of LAMP Stack features to get you up and running with Vagrant in no time.
http://box.scotch.io
2.7k stars 548 forks source link

date.timezone = America/Phoenix not recognized #391

Open trevorpan opened 5 years ago

trevorpan commented 5 years ago

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 commented 5 years ago

What version are you on?

— Nicholas Cerminara Scotch Development

702.485.0853

--- original message --- On Tue, Aug 21, 2018 at 04:45 pm, notifications@github.com Trevor Pan wrote:

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 ~

You are receiving this because you are subscribed to this thread.

Reply to this email directly, view it on GitHub, or mute the thread. --- end of original message ---

trevorpan commented 5 years ago

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 commented 5 years ago

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

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

trevorpan commented 5 years ago

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....