Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1.22 KB

README.md

File metadata and controls

47 lines (35 loc) · 1.22 KB

Vagrant LAMP

Vagrant basic box with LAMP (Linux, Apache, MySql and PHP) on Ubuntu 12.04 LTS

Requirements

Usage

Startup

$ git clone https://github.com/ducnguyenhuy/vagrant-lamp.git
$ cd vagrant-lamp
$ vagrant up

Connecting

Apache

The Apache server is available at http://vagrant-lamp.dev or http://vagrant-lamp.lc

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

Run PHP test file

Enter http://vagrant-lamp.dev/phpinfo.php or http://vagrant-lamp.lc/phpinfo.php in your browser to see PHP information.

Access guest machine

$ vagrant ssh

Technical Details

  • Ubuntu 12.04 LTS
  • Apache 2
  • PHP 5.3
  • MySQL 5.5

I'm using the base Ubuntu 12.04 box from Vagrant. If you don't already have it downloaded the Vagrantfile has been configured to do it for you.

The web root is located in the vagrant-lamp directory and you can install your files there.