date.timezone in php.ini for php5

My last post about glitch in time related function for php5 I use a function date_default_timezone_set For global setting as always use date.timezone in php.ini just change from : ;date.timezone =Asia/Jakarta uncomment it first by remove semicolon mark into this : date.timezone =Asia/Jakarta save php.ini files and restart apache try view using phpinfo() you’re done

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 edit  the code into date_default_timezone_set( "Asia/Jakarta" ); // date.timezone = "timezone_here" print date(‘d-M-Y H:i:s’); …


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. …


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 Enter password: ERROR 2003: Can’t connect to MySQL server on ‘’ (61) according to this, that means no tcp/ip …


Using Sanesecurity Signatures for pdf email

A lot of pdf mail arrive in mailbox and maia can’t detect that. After googling I found in howtoforge about Filtering PDF-/XLS-/Image-Spam With ClamAV (And ISPConfig) On Debian/Ubuntu. I wanna try it for FreeBSD, after red last section I try to update the scripts. Changing two lines as suggested based on clamav installation on FreeBSD …


maia-mailguard and mimeDecode

[Sat Jul 28 13:59:10 2007] [error] [client] PHP Fatal error:  require_once() [<a href=’function.require’>function.require</a>]: Failed opening required ‘Mail/mimeDecode.php’ (include_path=’.:/usr/local/share/pear:/usr/local/share/smarty:./libs:’) in /usr/local/www/maia-mailguard/mime.php on line 79, referer: try install pear mail jedimaster# pear install mail downloading Mail-1.1.14.tgz … Starting to download Mail-1.1.14.tgz (17,537 bytes) ……done: 17,537 bytes install ok: channel:// jedimaster# pear install mail_mime Ignoring installed …


Migrating from courier-imap to dovecot

Our email system need to refresh Vmailmgr + courier-imap + qmail no longer suitable Mostly with increasing user and complex operation. I need database support to integrate with other system. Need to migrating from courier-imap to dovecot system, googling lead me to this migration script. Need to check it in FreeBSD 6.2 stable. I’ll let …


Adding tls support to pure-ftp in FreeBSD

Log for adding tls support in ure-ftp in FreeBSD : >>>>=================  Make directory for certificate edp# mkdir -p /etc/ssl/private >>>>=================  Make certificate edp# openssl req -x509 -nodes -newkey rsa:1024 -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem Generating a 1024 bit RSA private key ……..++++++ ……++++++ writing new private key to ‘/etc/ssl/private/pure-ftpd.pem’ —– You are about to be asked …


Updating Clamav

I install clamav from ports and get error message that said my definition older than 7 days. After trying manual update, I see something jedimaster# /usr/local/bin/freshclam –verbose Current working dir is /var/db/clamav Max retries == 3 ClamAV update process started at Mon Jul 23 16:44:22 2007 Querying TTL: 300 WARNING: DNS record is older …


trying portsnap

With recent freebsd 6.2 stable installation I like to try portsnap. Since it’s already in base, no need to install this program Just trying it alamster# portsnap fetch Looking up mirrors… 3 mirrors found. Fetching public key from… done. Fetching snapshot tag from… done. Fetching snapshot metadata… done. Fetching snapshot generated at …


Install gd support in php without xorg

Recent upgrade to php 5.2.3 require to install gd support too but it always need xorg. Here’s a lttle note on how to add gd support in php5 ports in freebsd without xorg. 1. Checking installed php extension proxy# pkg_info | grep php5 php5-5.2.3          PHP Scripting Language (Apache Module and CLI) php5-bz2-5.2.3      The bz2 shared …