Ubuntu LAMP Headless
- Install PUTTY or SSH utility (optional)
- Install VirtualBox
- Download latest server ISO from Ubuntu.
- Provision the Virtual Machine to match or exceed the recommendations for minimum system specifications
- Attach the ISO and install
- use entire disk no LVM
- install updates automatically
- standard system utilities
- LAMP server
- Set a MySQL password
- OpenSSH (optional)
- GRUB on boot is fine for dedicated VM
- Add port forwarding to your NAT
- map a port for SSH
- map a port for Web Traffic
- Install Guest Additions
- sudo mount -t iso9660 -o ro /dev/cdrom /media/cdrom
- cd /media/cdrom
- sudo apt-get -y install gcc make
- sudo ./VBoxLinuxAdditions.run
- sudo umount /media/cdrom
- sudo /sbin/shutdown -r now
- start headless virtualbox instance
- ssh with PuTTY or another tool
- Add Shared Directory for web
- create script to automap in /etc/init.d Sample Script:
#!/bin/bash sudo mount -t vboxsf PublicWeb /var/www/html
- Make script executable
sudo chmod +x /etc/init.d/mountVBoxDirectories.sh
- Update RC to run at start
sudo update-rc.d mountVBoxDirectories.sh defaults
- create script to automap in /etc/init.d Sample Script:
No comments:
Post a Comment