In onderstaande stappen zal ik iets minder screenshots en info geven, zodra je uitgebreidere informatie wilt kan je dit bekijken in artikel: Lamp Omgeving installeren (F.a.m.p.)
Ik log in als root en ga de ports collectie updaten:
# portsnap fetch extract
# portsnap fetch update
# cd /usr/ports/www/apache24
# make install
# make clean
Pas het volgende configuratiebestand aan voor Apache:
# vi /usr/local/etc/apache24/httpd.conf
Pas de volgende regels aan:
ServerRoot "/usr/local"
ServerAdmin This email address is being protected from spambots. You need JavaScript enabled to view it.
ServerName www.example.com:80
DocumentRoot "/usr/local/www/apache24/data"
Listen :80
En sla het bestand op.
Voeg het volgende toe aan: /boot/loader.conf
accf_http_load="YES"
Voeg de volgende lijn toe aan: /etc/rc.conf
apache24_enable="YES"
# cd /usr/ports/databases/mysql56-server/
# make install
# make clean
# /usr/local/etc/rc.d/mysql-server onestart
# vi /etc/rc.conf
mysql_enable="YES"
Nu gaan we php installeren, kies de standaard opties:
# cd /usr/ports/lang/php55
# make install
# make clean
Copyeer het php.ini voorbeeld bestand
# cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
In hetzelfde bestand voeg je de volgende regel toe onder LoadModule
LoadModule php5_module libexec/apache24/libphp5.so
Voeg .php toe aan de DirectoryIndex zodat .php bestanden gestart kunnen worden:
Verander
DirectoryIndex index.html
naar
DirectoryIndex index.php index.html
# cd /usr/ports/www/mod_php55
# make install clean
Laad de dtracell module in het geheugen zodat de perl module geladen kan worden door Apache.
# kldload dtraceall
Voeg deze toe aan /boot/loader.conf
# echo 'dtraceall_load="YES"' >> /boot/loader.conf
# /usr/local/sbin/apachectl restart
Apache zou correct moeten opstarten.
# cd /usr/ports/sysutils/munin-master
# make config-recursive install clean

p5-Net-SSLeay-1.65 (p5 staat voor Perl versie 5), < OK >


png-1.5.18


libcheck-0.9.14


libgcrypt-1.6.1_3

fontconfig-2.11.0_3,1
glib-2.36.3_3


bison-2.7.1,1


p5-DateTime-1.10 (Perl 5)


p5-FCGI-0.74
De installatie van Munin Master is klaar!