Installation:FreeBSD:Apache

From PMWH2 - PHPMyWebHosting's official wiki
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".