Code Monkey home page Code Monkey logo

LAMP DEV SERVER

  • Ubuntu Precise (12.04)
  • Apache2
  • Php
  • Composer
  • Curl
  • Git

Optional (uncomment from puppet/manifests/init.pp to enable)

  • Wordpress
  • Mysql
  • PhpMyAdmin

Prerequisites

Getting Started

  1. Clone this repo into a local project folder
  2. From the project folder, run the command vagrant up --provision - this may take 3-5 minutes (NOTE: The first time you vagrant up may take 5-10 minutes extra to download the image for the Ubuntu installation)

Edit files on your local machine

Running vagrant up will create a htdocs folder within your local project folder. This folder is synced to the /var/www/ folder on the virtual machine. Any files you edit locally will be immediately available for review on the server.

Edit files on the server via SSH

You can SSH onto the server itself by running the command vagrant ssh

  1. SSH into the server to install the DB by running the command vagrant ssh
  2. Navigate to the root folder cd /var/www/
  3. Edit files using either VIM or NANO using the following commands:
  • VIM - sudo vi FILENAME.html
  • NANO - sudo nano FILENAME.html

IF YOU DECIDE TO INSTALL WORDPRESS - Adjust Hosts files to utilize a domain name

  1. Add the following to your local hostfile - 192.168.50.50 teamserver.mergeworld.com
  2. Login to WordPress admin and adjust site settings:
  • http://localhost:8080/wp-admin/ the username is admin, the password is vagrant.
  • Go to Settings
  • Changed WordPress Address (URL) and Site Address (URL) to http://teamserver.mergeworld.com
  1. The site is now available at http://wordpress.mergeworld.com

Access the database

MySQL Workbench

You can access the VM database using Workbench with the following settings

  1. Connection Method: Stnadard TCP/IP over SSH
  2. SSH Hostname: 192.168.50.50
  3. SSH Username/Password: vagrant/vagrant
  4. MySQL Hostname: localhost
  5. MySQL Username/Password: root/vagrant

PhpMyAdmin

  1. Navigate in your browser to http://teamserver.mergeworld.com/phpmyadmin
  2. Username/Password: root/vagrant

SSH

  1. SSH into the server to install the DB by running the command vagrant ssh
  2. Access mysql by running the command mysql -u root -pvagrant

Notes

  • If you need a password (for anything - including mysql, it should be vagrant)
  • vagrant suspend - This command will put your local vm to sleep
  • vagrant halt - This will shut off your local vm
  • vagrant destroy - This will remove the vm completely and require rebuilding from scratch

Paul R. Solans's Projects

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.