When i installed CakePHP on a hostet webspace (e.g. 1und1) i received this error message:
Strict Standards: strtotime(): 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 methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Europe/Berlin’ for ‘CEST/2.0/DST’ instead in /lib/Cake/Cache/CacheEngine.php on line 60
It seems that there are at least 2 solutions for that issue:
- adding this line of code into app/Config/core.php
This one worked fine for me.
- adding/changing this line in your php.ini
date.timezone = Europe/Berlin
This did not work for me, but therefore this seems to be a solution for other users, i thought i should put it in here, too.
I tried several times to install xdebug on my virtual box and it never worked out right. Netbeans started the script in the browser but did not connect to the server, so it was not possible to use any functionality, like breakpoints etc.
The standard installation procedure on Ubuntu server with apt-get install php5-xdebug went fine, but the result was not.
In desperation i tried to install Xdebug manually with the tutorial found on the xdebug website.
All You have to do is copy the html source from your phpinfo(); output. You will find a tutorial on how to install Xdebug with the current version on your server. With doing so, Xdebug found its way on my server, but was not activated properly.
I successfully activated it via
apt-get install php5-xdebug
The installation went fine again, but – somehow – it does now, what it should. It seems that both ways of installation missing something the other way brought in and completed each other.
Netbeans and Xdebug are now working great together and it is unbelievable helpful.
If your installation fails over and over again, like mine did, give it a try to install it like i described. maybe it will help you, too. 🙂