Giter VIP home page Giter VIP logo

vagrant-lamp's Introduction

Vagrant LAMP

Want to test a new web app but don't want to affect your current Apache / MySQL / PHP system? Applications like MAMP are great, but they don't make it easy to maintain multiple, separate web roots.

If you find yourself needing quick to configure web stack, but also one that is customizable try this Vagrant project

Vagrant allows for Virtual Machines to be quickly setup, and easy to use.

And this project aims to make it very easy to spinup a complete LAMP stack in a matter of minutes.

Requirements

Usage

Startup

  1. Download one of the releases available https://github.com/mattandersen/vagrant-lamp/releases
  2. Extract the ZIP file.
  3. From the command-line:
$ cd vagrant-lamp-release
$ vagrant up

That is pretty simple.

Connecting

Apache

The Apache server is available at http://localhost:8888

MySQL

Externally the MySQL server is available at port 8889, and when running on the VM it is available as a socket or at port 3306 as usual. Username: root Password: root

Technical Details

  • Ubuntu 14.04 64-bit
  • Apache 2.4
  • PHP 5.5
  • MySQL 5.5
  • XDebug
  • PHPUnit 4.8
  • Composer

We are using the base Ubuntu 14.04 box from Vagrant. If you don't already have it downloaded the Vagrantfile has been configured to do it for you. This only has to be done once for each account on your host computer.

The web root is located in the project directory at src/ and you can install your files there

And like any other vagrant file you have SSH access with

$ vagrant ssh

vagrant-lamp's People

Contributors

kokarn avatar mca-gif avatar miketostring avatar nocash avatar pablopunk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vagrant-lamp's Issues

php5-mysql

The php5-mysql package is not installed by default, seems a bit strange in a LAMP installation

Provision.sh aborts when trying to install the php5-pear package.

When the script executes:
apt-get -y install php5 php5-curl php5-mysql php5-sqlite php5-xdebug php5-pear

The following is returned:
E: Unable to locate package php5-pear

This causes cancellation of execution for the provision.sh during automatic provisioning. Modifying it to not install the php5-pear package solves the issue.

If the php5-pear package is not that necessary for the intent of this project, it might be a good idea to remove it from the script install attempt. Otherwise, another repository might need to be added during the execution of the provision.sh script so that the package can be properly found.

PHP not supported in Apache...

Hi,
not sure if I'm just missing something obvious, but PHP is not processed by apache. I just get the plain content of the php files as if they were simply txt files.

changing the src

Matt - Thank you for this!
the follwing is not an issue but a question:
I want to re-route the src location to my dropbox location...
I change the share folder in the virtualbox, but that did not do it.. Any ideas as to accomplish this?
Thanks!

PHP 5.5

Easiest setup I've tried so far! Is there any chance of getting an update for PHP 5.5 though? 5.5 has been stable for quite some time now, while 5.3 is almost out of support.

MySQL schema

I've just setup this vagrant box to work on a website based on a PHP CMS. Now I've got one question: How do I tell the CMS to connect to the database? I've successfully connected to MySQL via PHPStorm. There I see three schemata: information_schema, mysql and performance_schema. All sound like system schemata.

Am I supposed to create them by my own? But wouldn't it be nice to have at least one set up initially that I can use with my CMS or any other application?

Vagrantfile will not download the box

There is no information in there that will let vagrant download the Ubuntu 14.04 Box.
I for one dont have the box itself so I'm getting

pascal@trouble:~/vagrant/ubuntu-lamp-14$ 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 'ubuntu/trusty64' could not be found.

this.

Getting errors to display in dev machine

Hi Matt,
first of all thank you for publishing this stack, it's very handy to have all that ready out of the box :)

I am working on a PHP app with this system now, however I am unable to display PHP errors with. I changed the ubuntu template for php.ini in the php recipe, no joy. I'm not really familiar with Chef, so I don't really know were to go for this... any pointers?

Also, have you tried installing x-debug on this, and if so could you let me know how to proceed ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.