Category Archives: Unix

How to install postgresql 8.1.22 and php 5.2.14 on FreeBSD 8.1 stable

Recent change in mysql make my friend contact me. He want to learn and practice about postgresql before use it on real cpanel host that support postgresql . I agree to set new server for him to play around. The  server itself basically consists of apache, php, postgresql and phppgadmin on FreeBSD 8.1 stable.

Here the steps :

Which Version of Postgresql

I also have same hosting account that my friend use. I log in to cpanel then click phppgadmin to see postgresql version.

Ok. I can see that Postgresql 8.1.22 installed on that host.

Continue reading

Fatal error: Call to undefined function gregoriantojd()

That error message show up when I try to install wordpress plugin. I think it must be plugin author false since I already have php date extension enabled but I’m wrong :-)

Further search lead me to ‘calendar’ extension. Look no further to php5-calendar in my FreeBSD 7.3 box I install it.

cd /usr/ports/misc/php5-calendar && make install

stop php cgi prosess

/usr/local/etc/rc.d/php.cgi.sh stop

start php cgi process

/usr/local/etc/rc.d/php.cgi.sh start

check extension with phpinfo() function :

Great its on the list now. Refresh plugin install at wordpress and I’m back to business :-)

FreeBSD 7.3 released

FreeBSD 7.3 ready to serve.

From FreeBSD press release :

Some of the highlights:

  • ZFS updated to version 13
  • new boot loader gptzfsboot supports GPT and ZFS
  • hwpmc(4) enhancements including support for Core2/i7 processor and pmcannotate(8)
  • new mfiutil and mptutil tools for widely used RAID controllers
  • NULL pointer vulnerability mitigation
  • bind updated to 9.4-ESV
  • Gnome updated to 2.28.2
  • KDE updated to 4.3.5
  • Perl updated to 5.10

For a complete list of new features and known problems, please see the online release notes and errata list available at:

Download link : i386

for other architecture you may visit full 7.3 iso

Step by step Install Pure-FTP inside pfSense

pfSense is great stuff when you’re looking for Firewall but I need more :-)

Case :

A user want to store his file in the form of FTP but pfSense is the only server that available in the office. New HDD ready to support this method.

Solution : Add new HDD and install FTP server inside pfSense.

Steps : ( I use vmware for reproduction the steps)

Install pfSense version 1.2.3

1. Install pfSense

I install version 1.2.3 as I need to produce it with latest pfSense version.

install ftp server on pfsense : create virtual machine

I use 2 HDD ( system located in 8G HDD and second HDD for FTP data)

Ethernet 1 set for LAN ( ip address 192.168.12.110) and ethernet 2 work as WAN ( I set to DHCP)

Enable sshd for remote configuration via ssh client like putty, securecrt  etc.

Restart system after successfully install to HDD.

Continue reading

FreeBSD 8.0 RELEASE has been released, get your iso or update your source now!

While waiting for official announcement I see that FreeBSD 8.0 iso file just replace 8.0RC3.

Quick download iso file for FreeBSD 8.0 Release :

Update via source using csup or cvsup

set to :

RELENG_8_0 for release

or

RELENG_8 for stable

Update via freebsd-update :

freebsd-update upgrade -r 8.0-RELEASE