Skip to content

SubrataBauri/ubuntuspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ubuntuspace Vagrant

This Vagrant is a simple Ubuntu Trusty64 vagrant configuration for LAMP stack developers which also includes many related modern development tools.

Overview

This vagrant use ubuntu/trusty64 from Atlas Vagrant Box. On your 'vagrant up' command, this vagrantfile will automatically download the box. Vagrant folder here contain a bootstrap.sh file which provision the vagrant box.

You need to place your projects in projects directory. This directory is synced with /var/www/html directory in the virtual machine. This project folder also contain a config folder which is used during the provisioning.

This vagrant box is configured to use '1024mb' of RAM and 1 CPU. You can change ths configuration from Vagrantfile.

Included packages

  • Ubuntu Trusty64 (64-Bit)
  • Apache 2
  • PHP v5.6.7 with mysql, mcrypt, memcached, memcache, sqlite, xmlrpc, geoip gd, xdebug, php5-fpm, php5-common
  • MySQL v5.5.41
  • Git
  • Composer
  • NPM
  • Bower

Included Dependencies

The following dependencies are installed using apt-get as they are required to install and build other modules:

  • cURL
  • python-software-properties
  • build-essential
  • libev-dev

Installation

Install via Git

To use this Ubuntuspace vagrant, clone this github repo

With https

$ git clone https://github.com/SubrataBauri/ubuntuspace.git

With ssh

   $ git clone [email protected]:SubrataBauri/ubuntuspace.git

to your mac/pc/linux. When clone is complete, go to the ubuntuspace and now you are ready to use your Virtual Machine.

Edit hosts file

Windows - start notepad.exe as Administrator and browse to this file:

C:\Windows\System32\drivers\etc\hosts

Linux/Mac - use root user or sudo to edit this file:

/etc/hosts

Add the following lines to your hosts file:

10.0.0.101 dev.ubuntuspace.com

Use

Start the VM

$ cd /ubuntuspace
$ vagrant up

First time of your 'vagrant up' will provision the vagrant. You can see the status of your VM from http://dev.ubuntuspace.com. You can check the phpinfo from http://dev.ubuntuspace.com/phpinfo.php

Requirements

You must have Vagrant and VirtualBoxinstalled in your pc.

Default Credentials

These are credentials setup by default.

Host Address:

  • Host: 10.0.0.101 (Change in Vagrantfile if you like)

SSH

  • Username: vagrant
  • Password: vagrant
  • Port: 22

MySQL Credentials

  • Username: root
  • Password: root
  • Host: localhost
  • Port: 3306

Enable rewrite

vagrant ssh
cd /etc/apache2/sites-available/
vim 000-default.conf

add the following section:

<Directory /var/www/html>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

About

Vagrant environment for LAMP stack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published