Skip to content

(DEPRICATED) This repo contains everything necessary to bootstrap developers with a virtual machine that contains the LAMP stack pre installed, apache configured and a database seeded with data required for the capstone project

Notifications You must be signed in to change notification settings

AustinCodingAcademy/VirtualMachines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

You are required to install the following software on your computer prior to running any commands:

  • VirtualBox - Create and manage virtual environments locally
  • git - Version control
  • Vagrant - Install and create virtual machines easily

Mac Instructions

Open up Terminal, copy and paste this entire command, then hit enter

cd ~/Desktop; cd VirtualMachines; vagrant destroy; cd ~/Desktop; rm -rf htdocs; rm -rf VirtualMachines; mkdir VirtualMachines; mkdir htdocs; echo "<?php phpinfo();" > htdocs/index.php; cd VirtualMachines; curl https://gist.githubusercontent.com/sameg14/9e31709d132e6494ec1d/raw/c14a5ed761128ca14a2a4d8514684a4dab4eac23/VagrantFile > VagrantFile; vagrant up; vagrant ssh;

Windows Instructions

Open up your command prompt, by pressing the windows key and typing in command

Once you have the command prompt open type in the following commands

cd \
mkdir htdocs
mkdir vm

Open up windows explorer, and navigate to the c:\ drive.

In the htdocs folder, create a file called index.php with the following contents.

<?php
phpinfo();

Similarly, in the vm folder, create a file called VagrantFile. Note that this file has no extension, and case matters!

Copy and paste the following code in this VagrantFile

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.hostname = "aca.vm"
  config.vm.box = "https://s3-us-west-2.amazonaws.com/vagrantvmboxes/aca-generic-lamp-packaged.box"
  config.vm.network "private_network", ip: "10.10.10.60"
  config.vm.synced_folder "c:\\htdocs", "/var/www"

  config.vm.provider "virtualbox" do |vb|
    vb.gui = false
    vb.customize ["modifyvm", :id, "--memory", "1024"]
    vb.customize ["modifyvm", :id, "--cpus", "1"]
  end
end

Save this file, go back to your command prompt and tpe in the following commands.

cd \
cd vm
vagrant up

Post Installation (mac and windows)

Once everything is complete, visit http://10.10.10.60 in your browser.

You should see the following output in your mac terminal (colors may vary) Terminal

On windows, you should see the following output. You can issue vagrant ssh from within the c:\vm folder to SSH into the VM. CommandPrompt

On mac or windows, you should see the following page in your browser Browser

About

(DEPRICATED) This repo contains everything necessary to bootstrap developers with a virtual machine that contains the LAMP stack pre installed, apache configured and a database seeded with data required for the capstone project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published