date_default_timezone_set for php5 date() fixation

Recent upgrade to php5 in appserv make me confuse when my friend ask me about this code : print date(‘d-M-Y H:i:s’); hour isn’t accurate after googling I found about date_default_timezone_set for full list of supported zone time see this link http://www.php.net/manual/en/timezones.php edit  the code into date_default_timezone_set( "Asia/Jakarta" ); // date.timezone = "timezone_here" print date(‘d-M-Y H:i:s’); …

More

Options in FreeBSD ports

some useful options : make config make showconfig make rmconfig make rmconfig will remove old options saved. If not work try to clean first Also useful switch in portupgrade : portupgrade -aFrR (will download all required file without install) -i, need your decision.

Migrating email accomplished (postfix+mysql+dovecot)

Fiuh, finally migrating email task is clear. Almost 3500++ email account from vmailmgr based system moved to postfix with mysql backend and dovecot support. thanks to Bendiken script that convert things magically Generally the steps are : 1. Rsync email to new server 2. Change to dovecot style with migration script, make it in looping. …

More

ERROR 2003: Can’t connect to MySQL server

I Need to add remote user for add, select, update and delete in mysql. grant select,insert,update,delete on postfix.* to "postfix_rc"@"%" identified by "postfix_xxxxyyy" with grant option; try to access : -bash-2.05b$ mysql -upostfix_rc -p -h 172.88.1.5 Enter password: ERROR 2003: Can’t connect to MySQL server on ‘172.88.1.5’ (61) according to this, that means no tcp/ip …

More