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

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 …

More

maia-mailguard and mimeDecode

[Sat Jul 28 13:59:10 2007] [error] [client 172.88.1.4] 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:     http://172.88.1.5/maia-mailguard/welcome.php 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://pear.php.net/Mail-1.1.14 jedimaster# pear install mail_mime Ignoring installed …

More

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 …

More

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 …

More

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 current.cvd.clamav.net TTL: 300 WARNING: DNS record is older …

More

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 portsnap.FreeBSD.org mirrors… 3 mirrors found. Fetching public key from portsnap3.FreeBSD.org… done. Fetching snapshot tag from portsnap3.FreeBSD.org… done. Fetching snapshot metadata… done. Fetching snapshot generated at …

More

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 …

More