Fatal trap 12: page fault while in kernel mode
fault virtual adress = 0x1
fault code = supervisor read, page not present
instruction pointer = 0x20:0xc06a6b14
stack pointer = 0x28:0xcbf3b670
frame pointer = 0x28:0xcbf3b670
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 2 (g_event)
trap number = 12
panic: page fault
What a drag... and more time to listen to some more music.
Part - Mount - Size - Newfs
ad0s1a - / - 512MB - UFS2 - Y
ad0s1b - swap - 732MB - SWAP -
ad0s1d - /var - 1390MB - UFS2+S - Y
ad0s1e - /tmp - 512MB - UFS2+S - Y
ad0s1f - /usr - Rest - UFS2+S - Y
The numbers above are just to low for today's needs, so I change them to:
Part - Mount - Size - Newfs
ad0s1a - / - 2000MB - UFS2 - Y
ad0s1b - swap - 1000MB - SWAP -
ad0s1d - /var - 2000MB - UFS2+S - Y
ad0s1e - /tmp - 1000MB - UFS2+S - Y
ad0s1f - /usr - Rest - UFS2+S - Y
if you need more you can fondle around with these values.
Part: Mount: Size: Newfs
ad0s1a / 512MB UFS2
ad0s1b swap 486MB SWAP
ad0s1d /var 1267MB UFS2+S
ad0s1e /tmp 512MB UFS2+S
ad0s1f /usr 1221MB UFS2+S
If you got a bigger hdd than 10GB, change
Part - Mount - Size - Newfs
ad0s1a - / - 2000MB - UFS2 - Y
ad0s1b - swap - 1000MB - SWAP -
ad0s1d - /var - 2000MB - UFS2+S - Y
ad0s1e - /tmp - 1000MB - UFS2+S - Y
ad0s1f - /usr - Rest - UFS2+S - Y
cd /dev
ls
Check if you see /ad0s2 (Hard disk 0 Slice 2). In some cases the device where you want to install your encrypted Freebsd can be /ad1s2, ad2s2 or even ad6s2. Be sure to check for s2.
geli init –b –s 4096 –l 256 /dev/ad0s2
{ENTER}
Enter new passphrase
Metadata backup can be found in /var/backups/ad0s2.eli and can be restored......
if not, enter the command again and try again.
geli attach /dev/ad0s2
GEOM_ELI: Device ad0s2.eli created.
GEOM_ELI: Encryption: AES-CBC 256
GEOM_ELI: Crypto: software
bsdlabel –w /dev/ad0s2.eli
{ENTER}
bsdlabel –e /dev/ad0s2.eli
{ENTER}
# /dev/ad0s2.eli:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 500000 0 4.2BSD 0 0
b: 236328 500000 swap 0 0
c: ?????? 0 unused 0 0 # don’t edit
d: 618164 736328 4.2BSD 0 0
e: 250000 1354492 4.2BSD 0 0
f: * 1604492 4.2BSD 0 0
Arrange everything with TABs to get it underneath each other
cd /dev
ls
And search for ad0s2.eli, ad0s2.elia, ad0s2.elib, ad0s2.elid, ad0s2.elie, ad0s2.elif
newfs –i 1024 /dev/ad0s2.elia
You will see some data over your devices and how many inodes your partition will have.
/dev/ad0s2.elia: 488.3 MB (1000000 sectors) block size 16384, fragment size 4096
using 4 cylinder groups of 122.08MB, 7813 blks, 31296 inodes.
super-block backups (for fsck –b #) at:
160, 250176, 500192, 750208
newfs /dev/ad0s2.elid
newfs /dev/ad0s2.elie
newfs –i 1024 /dev/ad0s2.elif
mkdir /fixed
mount /dev/ad0s2.elia /fixed
mkdir /fixed/var
mkdir /fixed/tmp
mkdir /fixed/usr
mount /dev/ad0s2.elid /fixed/var
mount /dev/ad0s2.elie /fixed/tmp
mount /dev/ad0s2.elif /fixed/usr
/bin/sh
export DESTDIR=/fixed/
/bin/csh
mount /cdrom
cd /cdrom/8.1-RELEASE/base
./install.sh
cd /cdrom/8.1-RELEASE/kernels
./install.sh GENERIC
cd /cdrom/8.1-RELEASE/manpages
./install.sh
cd /cdrom/8.1-RELEASE/catpages
./install.sh
mount /dev/ad0s1 /mnt
cp –Rpv /fixed/boot /mnt
cd /mnt/boot/kernel
gzip kernel geom_eli.ko acpi.ko
vi /mnt/etc/fstab
# Device Mountpoint Fstype Options Dump Pass#
/dev/ad0s2.elib none swap sw 0 0
/dev/ad0s2.elia / ufs rw 1 1
/dev/ad0s2.elie /tmp ufs rw 2 2
/dev/ad0s2.elif /usr ufs rw 2 2
/dev/ad0s2.elid /var ufs rw 2 2
/dev/acd0 /cdrom cd9660 ro,noauto 0 0
In fstab you can tell FreeBSD what to mount at bootup, be careful!! One mistake and you need to fix it in safe mode. I don't like that!
mkdir /fdd
mkdir /mnt/fdd
mkdir /fixed/fdd
mkdir /cdrom
mkdir /mnt/cdrom
mkdir /fixed/cdrom
cp /mnt/etc/fstab /fixed/etc
echo hint.kbdmux.0.disabled=\"1\" >> /mnt/boot/device.hints
Kbdmux is responsible for caching FireWire
echo geom_eli_load=\”YES\” >> /mnt/boot/loader.conf
shutdown –h NOW
You have 3 changes to enter the correct code, if you fail 3 times you cannot acces your encrypted partition anymore. Instead just power off the machine and try againAttention If you have a PS/2 connection for your keyboard use a PS/2 Keyboard, USB will be initialized when you can login with your user name.
For FreeBSD systems I always use Rocket Raid cards, these are always recognized by FreeBSD
cd /dev
ls
Look for da0 or ar0
geli init –b –s 4096 –l 256 /dev/da0
Enter the passphrase for this array twice.
geli attach /dev/da0
Enter your Passphrase that you have provided.
GEOM_ELI: Device da0.eli created
GEOM_ELI: Encryption: AES-CBC 256
GEOM_ELI: Crypto: software
bsdlabel –w /dev/da0.eli
bsdlabel –e /dev/da0.eli
newfs /dev/da0.elia
mkdir /encrypt_a
mount /dev/da0.elia /encrypt_a
df -h
You will see the partition size, how much is avaiable and the percentage that is used.
vi /etc/fstab
/dev/da0.elia /encrypt_a ufs rw 2 2
mount /dev/ad0s1a /mnt
cp /etc/fstab /mnt/etc
shutdown -r NOW
vi /var/log/messages
Look for Ethernet address (You can search with /keyword), note the name, mine is: vr0
sysinstall
Host: BSD0x
Ipv4 Gateway: 10.30.0.100
Nameserver: 10.30.0.100
Ipv4 Adress: 10.30.0.x
Shutdown -r NOW
adduser
david:*:1001:
mariska:*:1002:
mysql:*:1003:rsync
ftp:*:1004:david
richard:*:1005:
speciaal:*:1006:david
locatedb:*:1007:
install:*:1008:rsync,locatedb.makelist
rsync:*:1009:
fotos:*:1010:david,mariska,rsync,locatedb,bezoeker,MCX1,tessa,makelist
readwww:*:1011:david,mariska,rsync,locatedb,MCX1,makelist
sound:*:1012:david,locatedb,rsync,makelist
emulator:*:1013:david,locatedb,rsync,makelist
bezoeker:*:1014:
copycopy:*:1015:
MCX1:*:1016:
tessa:*:1017:
bewoner:*:1018:david,mariska,rsync,locatedb,MCX1,makelist
makelist:*:1020:
copycop:*:1021:
rootmail:*:1022:
pw groupadd bewoner
vi /etc/group
sysinstall
vi /etc/rc.conf
shutdown -r NOW
sysinstall
vi /usr/local/etc/rsyncd.conf
# rsyncd.conf - Example file, see rsyncd.conf(5)
#
# Set this if you want to stop rsync daemon with rc.d scripts
pid file = /var/run/rsyncd.pid
# Edit this file before running rsync daemon!!
uid = rsync
gid = rsync
use chroot = no
max connections = 4
syslog facility = local5
pid file = /var/run/rsyncd.pid
#auth users =david, speciaal, copycop, copycopy
#secrets file = /usr/local/etc/rsyncd.secrets
[test]
path = /encrypt_a/tmp
comment = Test to sync the samba tmp directory
[encrypt_a]
path = /encrypt_a
[encrypt_a]
path = /encrypt_a
comment = Shared Directory Tree
auth users = copycop
hosts allow = 10.30.0.2
secrets file = /usr/local/etc/rsyncd.secrets
#[ftp]
# path = /var/ftp/pub
# comment = whole ftp area (approx 6.1 GB)
#[sambaftp]
# path = /var/ftp/pub/samba
# comment = Samba ftp area (approx 300 MB)
#[rsyncftp]
# path = /var/ftp/pub/rsync
# comment = rsync ftp area (approx 6 MB)
#[sambawww]
# path = /public_html/samba
# comment = Samba WWW pages (approx 240 MB)
#[cvs]
# path = /data/cvs
# comment = CVS repository (requires authentication)
# auth users = tridge, susan
# secrets file = /usr/local/etc/rsyncd.secrets
chmod 0640 /usr/local/etc/rsyncd.conf
vi /usr/local/etc/rsyncd.secrets
tridge:mypass
susan:herpass
chmod 0640 /usr/local/etc/rsyncd.secrets
When an error appears "Auth failed at module…. " Than the rights for the configuration file and/or secrets file are wrong. Or check if you did not make a typo in the configuration file to the secrets file.
rsyncd_enable=”YES”
vi /etc/rc.conf
ntp_enable=”YES”
vi /etc/ntp.conf
# This is the configuration file for NTP
# (Network Time Protocol). More info at
# www.NTP.org
# This computer will act as a stratum 2 time
# server, by referencing the following 4 or
# more stratum 1 time servers:
server nl.pool.ntp.org iburst # Netherlands
server be.pool.ntp.org iburst # Belgium
server de.pool.ntp.org iburst # Germany
server fr.pool.ntp.org iburst # France
server es.pool.ntp.org iburst # Spain
# Since the clock on most PCs drifts around
# significantly, let's use a file to
# keep track of that drift and compensate
# for it:
driftfile /etc/ntp.drift
For alternate time servers visit: http://www.pool.ntp.org/envi /etc/motd
FreeBSD 8.1-RELEASE (BSD03) - 2010 /Node:3 (Original file:/etc/motd.bak)
Running:
- Apache2, Php 5, Mysql 5
- Pure-FTPd, SSH
- Samba 3
- NFS
IP: 10.30.0.4 / Gateway: 10.30.0.100
- FreeBSD Handbook: http://www.FreeBSD.org
- Use sysinstall to install additional Packages
sysinstall
/encrypt_a -maproot=copycop 10.30.0.3
vi /etc/exports
vi /etc/rc.conf
There should be two lines with NFS in it.
nfs_server_enable="YES"
rpcbind_enable="YES"
mount 10.30.0.3:/encrypt_a /mnt
cd /mnt
cp –Rpv * /encrypt_a
cp –Rpnv * /encrypt_a
Remark The option "n" will prevent overwriting files that already exist.
sysinstall
Choose Configure -> Distributions and place an "X" in front of Ports and select ok.
cd /usr/ports/net/samba34
make install clean
pkg_delete tdb-1.2.0
To delete a conflicting package.
make install clean
Wait for FreeBSD to finish.
vi /usr/local/etc/smb.conf
# This one is useful for people to share files
[tmp]
comment = Temporary file space
path = /encrypt_a/tmp
writeable = no
public = yes
# Private-drives
#
[private]
comment = Eigen Prive directory op de Server
path = /encrypt_a/Private/%U
public = no
writeable = yes
browseable = no
[appz]
comment = Programma's, Games en dergelijke.
path = /encrypt_a/Appz
public = no
writeable = yes
browseable = no
force create mode = 0775
force directory mode = 0775
[ons]
comment = Gezamelijke schijf
path = /encrypt_a/Ons
public = no
writeable = yes
browseable = no
force create mode = 0770
force directory mode = 0770
vi /etc/rc.conf
nmbd_enable="YES"
smbd_enable="YES"
smbpasswd -a username
You will be asked to enter the password for this user twice.
I always use the same usernames that I made in FreeBSD, so the usernames will be attached to the files the user save in the shares.
smb ports = 139
load printers = no
printing = bsd
printcap name = /dev/null
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# For a step to step guide on installing, configuring and using samba,
# read the Samba-HOWTO-Collection. This may be obtained from:
# http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
#
# Many working examples of smb.conf files can be found in the
# Samba-Guide which is generated daily and can be downloaded from:
# http://www.samba.org/samba/docs/Samba-Guide.pdf
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
workgroup = Wayward
# server string is the equivalent of the NT Description field
server string = BSD03 Samba Server
## Samba Time Server?
#
time server =yes
## getpeername failed. Error was socket is not connected, solution:
#
smb ports = 139
# Security mode. Defines in which mode Samba will operate. Possible
# values are share, user, server, domain and ads. Most people will want
# user level security. See the Samba-HOWTO-Collection for details.
security = user
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
hosts allow = 10.30.0. 127.
# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
load printers = no
# you may wish to override the location of the printcap file
printcap name = /dev/null
# on SystemV system setting printcap name to lpstat should allow
# you to automatically obtain a printer list from the SystemV spool
# system
; printcap name = lpstat
# It should not be necessary to specify the print system type unless
# it is non-standard. Currently supported print systems include:
# bsd, cups, sysv, plp, lprng, aix, hpux, qnx
printing = bsd
# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
; guest account = pcguest
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba34/log.%m
# Put a capping on the size of the log files (in Kb).
max log size = 50
# Use password server option only with security = server
# The argument list may include:
# password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
# or to auto-locate the domain controller/s
# password server = *
; password server = <NT-Server-Name>
# Use the realm option only with security = ads
# Specifies the Active Directory realm the host is part of
; realm = MY_REALM
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.
; passdb backend = tdbsam
# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting.
# Note: Consider carefully the location in the configuration file of
# this line. The included file is read at that point.
; include = /usr/local/etc/smb.conf.%m
# Most people will find that this option gives better performance.
# See the chapter 'Samba performance issues' in the Samba HOWTO Collection
# and the manual pages for details.
# You may want to add the following on a Linux system:
; socket options = SO_RCVBUF=8192 SO_SNDBUF=8192
# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
; interfaces = 192.168.12.2/24 192.168.13.2/24
# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
; local master = no
# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
; os level = 33
# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
; domain master = yes
# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
; preferred master = yes
# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
; domain logons = yes
# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
; logon script = %m.bat
# run a specific logon batch file per username
; logon script = %U.bat
# Where to store roving profiles (only for Win95 and WinNT)
# %L substitutes for this servers netbios name, %U is username
# You must uncomment the [Profiles] share below
; logon path = \\%L\Profiles\%U
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
; wins support = yes
# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z
# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one WINS Server on the network. The default is NO.
; wins proxy = yes
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The default is NO.
dns proxy = no
# Charset settings
; display charset = koi8-r
; unix charset = koi8-r
; dos charset = cp866
# Use extended attributes to store file modes
; store dos attributes = yes
; map hidden = no
; map system = no
; map archive = no
# Use inherited ACLs for directories
; nt acl support = yes
; inherit acls = yes
; map acl inherit = yes
# These scripts are used on a domain controller or stand-alone
# machine to add or delete corresponding unix accounts
; add user script = /usr/sbin/useradd %u
; add group script = /usr/sbin/groupadd %g
; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
; delete user script = /usr/sbin/userdel %u
; delete user from group script = /usr/sbin/deluser %u %g
; delete group script = /usr/sbin/groupdel %g
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /usr/local/samba/lib/netlogon
; guest ok = yes
; writable = no
; share modes = no
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
; path = /usr/local/samba/profiles
; browseable = no
; guest ok = yes
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba34
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes
# This one is useful for people to share files
;[tmp]
; comment = Temporary file space
; path = /tmp
; read only = no
; public = yes
# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
; comment = Public Stuff
; path = /home/samba
; public = yes
; writable = yes
; printable = no
; write list = @staff
# Other examples.
#
# A private printer, usable only by fred. Spool data will be placed in fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
; comment = Fred's Printer
; valid users = fred
; path = /homes/fred
; printer = freds_printer
; public = no
; writable = no
; printable = yes
# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
; comment = Fred's Service
; path = /usr/somewhere/private
; valid users = fred
; public = no
; writable = yes
; printable = no
# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %U option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
; comment = PC Directories
; path = /usr/pc/%m
; public = no
; writable = yes
# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no
# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765
#-=-=-=-=-=-=-=-=-= My Shares =-=-=-=-=-=-=-=-=-=-
#################################################
# All drives on the backup server are read only
#
# This one is useful for people to share files
[tmp]
comment = Temporary file space
path = /encrypt_a/tmp
writeable = no
public = yes
# Log share
#
[log]
comment = Log files of BSD03
path = /var/log
public = yes
writeable = no
browseable = no
# Private-drives
#
[private]
comment = Eigen Prive directory op de Server
path = /encrypt_a/Private/%U
public = no
writeable = yes
browseable = no
# Appz Drive
#
[appz]
comment = Programma's, Games en dergelijke.
path = /encrypt_a/Appz
public = no
writeable = yes
browseable = no
force create mode = 0775
force directory mode = 0775
# Special Drive
#
[special]
comment = Special Drives for: Ftp, Images, Sound, Apache
path = /encrypt_a/Special
public = no
writeable = yes
browseable = no
force create mode = 0775
force directory mode = 0775
# Media
#
[media]
comment = Media Audio, Video, Multimedia
path = /encrypt_a/Media
public = no
writeable = yes
browseable = no
force create mode = 0775
force directory mode = 0775
# Ons
#
[ons]
comment = Gezamelijke schijf
path = /encrypt_a/Ons
public = no
writeable = yes
browseable = no
force create mode = 0770
force directory mode = 0770
# Startup With batch files for connecting to BSD03
#
[startup]
comment = Batch files to connect to the BSD03 FreeBSD Server
path = /encrypt_a/Startup
public = yes
writeable = no
browseable = yes
# Share to dump all the Ghost images from dos
[image]
comment = Drive to dump all the Ghost image's to
path = /encrypt_a/Images
public = no
writeable = yes
browseable = yes
force create mode = 0775
force directory mode = 0775
# Shares for the Media Center
#
[video]
comment = Video Files for the media center
path = /encrypt_a/Media/movies
writeable = yes
browseable = yes
force create mode = 0775
force directory mode = 0775
[TV]
comment = Alle the tv programs we like to keep
path = /encrypt_a/Media/TV
writeable = yes
browsable = yes
force create mode = 0775
force directory mode = 0775
[pictures]
comment = All our pictures
path = /encrypt_a/Media/pictures
writeable = yes
browseable = yes
force create mode = 0775
force directory mode = 0775
[audio]
comment = All our avaible audio
path = /encrypt_a/Media/audio
writeable = yes
browseable = yes
force create mode = 0775
force directory mode = 0775
cd /usr/ports/databases/mysql41-server
make install clean
vi /etc/rc.conf
mysql_enable=”YES”
mysqllimits_enable=”NO”
chmod 0777 /tmp
cd /usr/ports/ftp/pure-ftpd
make – config
make install clean
/etc/rc.conf
# Pure-FTPd
pureftpd_enable="YES"
fetch http://machiel.generaal.net/files/pureftpd/v2.x/script.mysql
mysql -u root -psecret < script.mysql
cd /usr/local/etc
cp pure-ftpd.conf.sample pure-ftpd.conf
fetch http://machiel.generaal.net/files/pureftpd/v2.x/pureftpd-mysql.conf
vi pureftpd.conf
# MySQL configuration file (see README.MySQL)
MySQLConfigFile /usr/local/etc/pureftpd-mysql.conf
adduser
/usr/local/etc/rc.d/pure-ftpd start
You can always stop Pureftp with: /usr/local/etc/rc.d/pure-ftpd stop
cd /usr/ports/www/apache22
make install clean
vi /etc/rc.conf
# Apache 2
apache22_enable="YES"
cd /usr/ports/lang/php5
make config
make install clean
vi /usr/local/etc/apache22/httpd.conf
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
DirectoryIndex index.htm index.php index.html
cd /usr/ports/lang/php5-extensions
make config
make install clean
shutdown -r NOW
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (1)
Commented:
Other bootloaders want you to set up active partition in fdisk.
*
v9 would prefer GPT