Install using just the boot-cd, since I then just downloads the packages from the net.
During the installation I select the "Minimal Install" since it is to be used as a server and I want it as minimal as possible.
Log in a root and type:
Here you do the following:
Configure > Distributions > Select Man and Info by press space bar > Ok
When prompted for to choose Installation media select either CD or FTP/HTTP.
Now you can just exit the sysinstall tool.
To be able change your user to root, when logged in through SSH, you have to be in the "wheel" group.
Just type the following command, which will dowload the Ports tree and extract it.
To make the ports tree "update" I add the following command to /etc/crontab
This command makes the system fetch updates to the ports tree every night at 5.
When the updates are downloaded, it will check if there are updates to any of the installed packages and send a mail to root containing this information. Therefore remember to read root mail, or redirect it to another email adress. This is done by editing /etc/aliases and comment in root with a mail adress:
Run the following command to rebuild the aliases database.
This ports update, wont extract the ports into the ports tree (because of the -I parameter), it can be extracted with the following command:
Now it is time to begin installing packages. A neet tool to find these is "whereis" like the following example:
Since Bash is my favorite console, I start by installing bash:
When Bash is installed you change your default console the bash. Change the shell line to the following:
Well Midtnight Commander is a need tool, even though I know some thinks it is a bit "to easy" and like the command way..... I still think it comes handy somtimes.
Install the proftpd ftp server by:
Quota does not have to be installed, but I do it to have the possibility to make quota on users uploads.
To configure Proftpd start by adding it to /etc/rc.conf, then edit the configuration file:
Install the Apache22 webserver by:
Then enable Apache22 by adding it to /etc/rc.conf
Install Php5 (Php4 is about to die)
When the install is done, remember to add the typehandler to the apache configuration:
Install the MySQL 5.0 database by:
Configuration of MySQL 5.0 server
Now install PhpMyAdmin, a tool to manage the MySQL database.
MySQLI is the MySQL database connection support of Php5
Apache22 Configuration of PhpMyAdmin
Subversion is a version control software. In this case, I am to use it to check out the newest version of the webmail client Roundcube:
As a webmail client I use Roundcube. It looks nice and performs acceptable. To get the newest version I download it from their repository using svn:
Read the documentation to know how to configure the Roundcube mail client.
Add the following to the Apache22 httpd.conf:
The graphic libraries used by many web projects:
The SNMP monitor tool cacti:
Cacti configuration: Do as you are told by the installer and add the database tables, thereafter you can add the following line to crontab and add it to Apache22 httpd.conf:
Since I use som applications:
The ImageMagick graphics tools, also used by manu web applications:
UUPPPPPSSSS... I allmost forgot to install Screen, (I where to leave with my laptop, and a friend asked.... You did compile in screen??? And I said..... I knew i where missing something.....):
The Web statistic tool:
Apache22 configuration of httpd.conf:
Add the following line to /etc/crontab:
On FreeBSD Portupgrade is a tool you cannot be without. This tool is (as its name suggest) used to upgrade installed ports to new versions. This tools is installed like this:
And used like this:
This command will upgrade all ports and their dependencies,
Well a backup is always nice to have (yeah I know a real master cries instead of making backups).
Noooo I almost forgot the most important tool on a console managed server.... WGET...
Sorry about that :)