PostgreSQL 8.1.4 Security Patch Release

Late is better than never! PostgreSQL has release latest security patch version 8.1.4 last week. There is possible of SQL injection attack if you are still runing older version of PostgreSQL with multibyte encoding. Read the release FAQ here.

MacBook



After 2 weeks of blogging about it. After 1 week of postponements. After the Mac Mini, Mac Book Pro and iMac. Now, Mac Book, the transition of iBook, was officially launched yesterday in the US; night-time in Malaysia. Interested in getting one? Click on the image for tech specifications.

Tags: ,

Apache and PHP Setup on Mac OS X

This special tutorial is for a friend who would like to learn PHP on Mac but do not know how to setup Apache and PHP. Follow few step below and I think your Apple Powerbook should work.

Step 1: Edit Apache conf File

First open the terminal program in your Mac, it can be found in Application > Utiilties > Terminal. After the terminal is open, follow the command as below.

In case you do not know, the Terminal icon looks like this

terminal

After you have opened the Terminal, now type the command;
> cd /etc/httpd
> sudo nano -w httpd.conf

And now, you will need to key in your account password. After that, your terminal might look something like below.

Yes, now you will need to edit the apache config file. With the command;
> Ctrl + w // this is to perform some search
> php // to search the word “php”

When you have got the word “PHP” searched, edit the file value exactly the same as the screen shown below.

After you have edited the config file, save and exit with the command;

> Ctrl + O // save it httpd.conf
> Ctrl + X // to exit

Ok, now the httpd.conf file is edited and PHP is enable! Next, to start Apache.

Step 2: Start Apache Web Server

How to start your apache web server? Ahh, in Mac is damn easy, doesn’t need command like /usr/local/apache/bin/apachectl start!! First, go to System Preferences > Sharing.

Now start your web!

Yes, you are done now! Open your favourite internet browser, access your web http://192.168.x.x/~accountname. You web file is store in your account folder named Sites.

Done! To learn more about PHP, Go to PHP Official Website

Tags: , , ,

OpenBSD T-Shirt For Sales

I have an OpenBSD T-shirt for sale at the price of RM200. It only has been worn twice and washed in the washing machine 3 times. For those who love OpenBSD, it’s a good t-shirt, trust me. Size L.

Tags:

FreeBSD CVSUP Assertion Error

I have been having problems running port cvsup on one of my FreeBSD machines recently. Until there is a certainty of a line, it displays the error;

***
***
runtime error:

*** ASSERT failed
*** file “/usr/ports/net/cvsup-without-gui/work/cvsup-snap-16.1h/suplib/src/FileStatus.m3″, line 616
***

I managed to solve the problem after 1 week. What I did was rename /usr/sup folder to another name, run cvsup port-files to generate new cvsup tree file in /usr/sup

Hope this will solve your problems too.

Tags: ,