PcBSD 9: How to install PHP5

728 Views Asked by At

I'm trying to install PHP5 on pcBSD9. Inside my ports there is php5-session, php5-tidy, php52-session, and php52-tidy. I'm guessing I'm to install either php5-tidy or php52-tidy but I don't know the differences. There is no php5 directory. Could someone explain the differences between 5 and 52 as well as session and tidy? Thanks.

1

There are 1 best solutions below

0
On

Provided your ports tree is up-to-date, you should install the /usr/ports/lang/php5 port. This will give you 5.3.10 currently, since php 5.2 is deprecated.

For updating the ports tree, I prefer portsnap(8). It is in the base system of FreeBSD 9, which pcBSD9 is based on.