Skip to content

Demo/playground CentOS server with a LAMP stack, Wordpress & PHPMyAdmin, set up using Vagrant & Ansible

License

Notifications You must be signed in to change notification settings

tomstechele/lampstack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo/playground server with a LAMP stack

This is a demo/playground machine set up with Vagrant and Ansible. It contains a CentOS VM with a LAMP stack, Wordpress, and PHPMyAdmin.

It is useful for showing how Ansible works, or as a test-environment for developing in PHP.

Dependencies

The setup is OS independent, as long as you have the following tools installed:

Getting started

Open a Bash shell (Git Bash on Windows), go to a suitable directory to store this project and issue the following commands:

$ git clone --config core.autocrlf=input https://github.com/bertvv/lampstack
$ cd lampstack
$ ./scripts/dependencies.sh
$ vagrant up

Warning On Windows, it is essential that you include the setting core.autocrlf=input when cloning. If you forget, all files will get DOS line endings, and the setup will fail.

The VM will be attached to VirtualBox's default Host-only network adapter and has a static IP address, 192.168.56.77.

To shut down the VM, execute vagrant halt. Start it again with vagrant up. If you made a mistake and the VM is broken, do

$ vagrant destroy -f
$ vagrant up

Accessing the virtual machine

  • To start using the Wordpress site, surf to http://192.168.56.77/wordpress/
  • To manage the database, surf to http://192.168.56.77/phpmyadmin/
  • PHP code dropped in the www/ directory is immediately visible on the website at http://192.168.56.77/
  • To get shell access via ssh, do
    • vagrant ssh (no password)
    • or ssh vagrant@192.168.56.77 (password vagrant)
    • prepend all commands that need root privileges with sudo (no password required)

About

Demo/playground CentOS server with a LAMP stack, Wordpress & PHPMyAdmin, set up using Vagrant & Ansible

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 88.3%
  • Python 11.5%
  • PHP 0.2%