Installation:FreeBSD:Apache

From PMWH2 - PHPMyWebHosting's official wiki
Revision as of 16:50, 13 February 2006 by Chris (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Apache and PHP4

Required ports:

apache13
php4
php4-extensions

Install Apache

cd /usr/ports/www/apache13
make
make install
make clean

Install PHP4

cd /usr/ports/lang/php4
make
make install
make clean

Install extensions

Some extensions are prechecked, if you are un-sure about what you need, just leave them all checked, but make sure that MySQL and IMAP support are checkmarked and proceed. MySQL is needed - well, doh! And IMAP later on for example for webmail.

cd /usr/ports/lang/php4-extensions
make
make install
make clean

A note regarding the extensions. Make sure that all your ports are up to date (cvsup!). If it fails, it's most likely due to your failure to cvsup the necessary tree. Therefor it's a lot easier (read recommended) to cvsup "ports-all".