A small blog.

MAMP php.ini date.timezone setting

Running a recent local install of MAMP on my OSX 10.8.4, I ran into the following problem when running some PHP functions using the date method:

WARNING: [2] date(): 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 'America/Los_Angeles' for 'PST/-8.0/no DST' instead in /xxxx/xxxxx/xxxx.php on line # 562

Depending on how yo ...
Read More ...
Tags:   php.ini  date.timezone  MAMP  

Mountain Lion interferes with MAMP localhost on port 80

After upgrading to Mountain Lion OSX on my Mac, I found that MAMP wouldn't start Apache if you were on port 80. Changing it to 8888 or another port would allow it to start.

In previous versions of OSX, web-sharing allowed you to see your localhost from other computers on the same network running it's own version of Apache, disabling this would prevent it's own version of Apache from starting up and occupying port 80 automatically. Apparently in Mountain Lion, Apple decided to remove the option of web-sharing from the System Preferences, instead opting to automatically start Apac ...
Read More ...
Tags:   mountain lion  osx  mamp  localhost