Archive for May, 2011

portmanager crashes if /usr/local/share/portmanager/configure.db doesn’t exist

Symptom: portmanager crashes if /usr/local/share/portmanager/configure.db doesn’t exist

 

There is a very easy fix for this

Tun

portmanager -s

This will cause portmanager to create an initial index of the machine.

Add comment May 9th, 2011

PHP timezone settings

I just did a fresh install of AMP and the first php app I installed gave me the following error.

Warning: date() [function.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 ‘UTC’ for ‘UTC/0.0/no DST’

 

It turned out to be a quick fix.

First go to this page and find the syntax for your timezone.

http://nl3.php.net/manual/en/timezones.php

Once you have this edit your php.ini file and add the following to it

(If you are using a distro ini search for date to find the example)

date.timezone = “America/New_York”
Exchange the proper timezone for your region

 

 

 

Add comment May 7th, 2011


Calendar

May 2011
M T W T F S S
« Apr    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Posts by Month

Posts by Category