Setting up a web server with Apache 2.2.x and PHP 5.2.x with extensions, PEAR, MySQL 5.x and pdo_mysql on FreeBSD 7 step by step tutorial

This quick tutorial will show you how to set up a FreeBSD machine (based on minimal install) to run as a web server using Apache 2.2.x, PHP 5 and MySQL 5. This tutorial is based on FreeBSD 7.2 (the current stable release at the time of this writing).

This tutorial builds on the minimal installation described here and assumes you have also downloaded the ports collection. If you haven’t done so please read the following article first: Managing ports in FreeBSD.

Read more

Managing ports in FreeBSD

freebsd-logoThe aim of this article is to summarise the installation, reinstallation and deinstallation of ports (packages) in FreeBSD. The FreeBSD ports collection ir probably one of the most compelling reasons to choose FreeBSD (and you will soon see why). This tutorial continues from where we left the minimal installation in my previous post, so I am assuming you already have a working FreeBSD box.

Before we download the ports collection lets install curl, a very useful tool that will help us download the ports archive itself. We do this using the pkg_add command.

# pkg_add -r curl

As simple as that. The previous command should download the packages from the remote repo (the -r option stands for “remote”) and install them. If everything goes according to plan you should output that resembles the following:

Read more

Installing a minimal FreeBSD machine

This tutorial outlines how to install a FreeBSD minimal setup using version 7.2.

Instead of trying to put the whole process into writing I thought that a “screen by screen” approach would be a better idea. I hope the screenshots speak for themselves. Note that I’ve included every single screen and taken the screenshots after selecting the options (so you know what I chose).

It might look a bit daunting when you see that there are over 40 screenshots, but bear in mind that most of them are simple yes or no questions or alert messages. I just thought I would include as much detail as I could since there is nearly no accompanying text.

Read more