Using a Debian Virtual Machine as local server in OS X (2)

20 June 2010 at 15:00
filed under Uncategorized
Tagged , ,

install debian

virtualbox preferences > network >
adapter : 192.168.3.1
dhcp server : off

settings > network :
adapter 1 : host-only adapter
adapter 2 : NAT

settings > storage :
CD/DVD : VBoxGuestAdditions

restart virtualbox

start vm

nano /etc/network/interface
auto eth0
iface eth0 inet static
address 192.168.3.3
netmask 255.255.255.0

auto eth1
iface eth1 inet dhcp

(use ifconfig -a to get the right interface name : eth0, eth1, eth2, …)

aptitude install virtualbox-ose-guest-dkms

virtualbox : settings > shared folders > add

rm -f /var/www/*

nano /etc/fstab

Sites /var/www/ vboxsf defaults,uid=33,gid=33 0 0

uid=33, gid=33 -> mount as user www-data so that apache can write to disk (file upload, etc ..)

EDIT: there is an annoying cache bug with apache which is solved by turning off EnableSendfile (source : http://forums.virtualbox.org/viewtopic.php?f=3&t=33201#p148839) :
nano /etc/apache2/apache2.conf
EnableSendfile off

1 comment

RSS / trackback

respond

  1. ma.tthi.eu» Blog Archive » Using a Debian Virtual Machine as local server in OS X

    on 20 June 2010 at 15:02

    [...] old -> updated version [...]