I work on Windows and want to use some linux commands in console. I decided to install CygWin. I run my local server on Xampp.
When I open cygwin console and type php -v i see that is a version installed with cygwin. How to change configuration to cygwin use php from Xampp ?
I run Symfony project on local server and when I use xampp console all commands works fine, but when I open cygwin console and try to type some cmd for symfony there an error appear:
$ php app/console debug:router
[Symfony\Component\Debug\Exception\ContextErrorException] Warning: date_default_timezone_get(): It is not safe to rely on the system' s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those me thods and you are still getting this warning, you most likely misspelled th e timezone identifier. We selected the timezone 'UTC' for now, but please s et date.timezone to select your timezone.
- cygwin php version: PHP 5.6.15 (cli)
- xampp php version: PHP 5.5.27 (cli)
I suppose that cygwin php is wrongly configured thats why I want to use PHP from xampp dir.
date.timezone, it's usually commented. Uncomment it and set your local timezone, for exampleEurope/Warsaw. Here is a list of all supported timezones. - OldskoolPHP's json extension is requiredmeans you should load the JSON extension. It comes with XAMPP, it's just disabled by default. Find the line;extension=json.dll(or something like that) in the php.ini file and uncomment it. - Oldskool