Git Product home page Git Product logo

vagrant-lamp's Introduction

vagrant-lamp

A LAMP (Linux, Apache, MySQL, PHP) stack running in a virtual machine created by Vagrant. Includes a fresh WordPress install in the var/www/html folder on the guest machine.

Prerequisites

To use this VM, you must have the following software installed:

Below are instructions on how to use this virtual machine. The first option includes instructions on how to use it without WordPress. The latter is instructions on how to use it with WordPress.

Usage (without WordPress)

If you just want the LAMP stack without WordPress, follow these instructions:

  1. Edit the bootstrap.sh file, removing the WordPress installation.
  2. Create a www folder in the project directory (same directory as the Vagrantfile). This folder will be synched up with the virtual machine and it is the root directory of the web server.
  3. Boot up the virtual machine:
$ vagrant up
  1. Navigate http://192.168.50.4/ in your browser.

Usage (with WordPress)

  1. Create a www folder in the project directory (same directory as the Vagrantfile). This folder will be synched up with the virtual machine and it is the root directory of the web server.

  2. Boot up the virtual machine:

$ vagrant up
  1. SSH into the virtual machine:
$ vagrant ssh
  1. Login to MySQL:
$ sudo mysql -u root -p

When prompted to enter the password, type: root.

  1. Create the MySQL table for WordPress:
mysql> create database wordpress;

Verify the creation of the database:

mysql> show databases;
  1. Exit MySQL:
mysql> exit
  1. Exit the virtual machine:
$ exit
  1. Navigate http://192.168.50.4/ in your browser.

Teardown

When you are done with the virtual machine, you need to perform a teardown. See the various types of teardowns here.

vagrant-lamp's People

Contributors

matthewkosloski avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar  avatar  avatar

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.