Skip to content

Instantly share code, notes, and snippets.

@JeffreyWay
Last active April 30, 2026 08:09
Show Gist options
  • Select an option

  • Save JeffreyWay/af0ee7311abfde3e3b73 to your computer and use it in GitHub Desktop.

Select an option

Save JeffreyWay/af0ee7311abfde3e3b73 to your computer and use it in GitHub Desktop.
Stop using MAMP. Here's a laughably simple way to get setup with a LAMP stack with PHP 5.5.
alias lamp="curl -L -o 'install.sh' http://bit.ly/1hBfq57 && curl -L -o 'Vagrantfile' http://bit.ly/1mE3Qt9 && vagrant up"
@tskamath

tskamath commented May 7, 2015

Copy link
Copy Markdown

could get the install to work.. Fixed the File with http://foo-o-rama.com/vagrant--stdin-is-not-a-tty--fix.html#

edited the Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.provision "fix-no-tty", type: "shell" do |s|
    s.privileged = false
    s.inline = "sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile"
  end
  config.vm.box = "precise64"
  config.vm.box_url = "http://files.vagrantup.com/precise64.box"
  config.vm.network :private_network, ip: "192.168.101.101"
  config.vm.provision :shell, :path => "install.sh"
  config.vm.synced_folder ".", "/var/www"
end

@saqueib

saqueib commented Aug 29, 2015

Copy link
Copy Markdown

@JeffreyWay How can I install node.js on this box to use Elixir

@anonRegions

Copy link
Copy Markdown

I think I've done something wrong. When I get to Step 4 above, here's what happens:

vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:

  • The box 'hashicorp/precise32' could not be found.

Please advise.

Thanks.

@jrvaja

jrvaja commented Dec 29, 2015

Copy link
Copy Markdown

Hi,
For Ubuntu 14.04 stack

alias lamp="curl -L -o 'install.sh' https://goo.gl/xQR4ud && curl -L -o 'Vagrantfile' https://goo.gl/TMPyh2 && vagrant up"

Thanks,

@devonmather

Copy link
Copy Markdown

Getting errors when running this culminating in the following;

The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Full log here https://gist.github.com/devonmather/6c50c824ad89efac15e85a323c52c879

I've listed the errors from the console output that were red below the gist in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment