https://github.com/xinsnake/vagrant-webdev-centos
A very simple LNMP development machine based on CentOS 7, supports both php56 and php72.
https://github.com/xinsnake/vagrant-webdev-centos
centos linux vagrant virtualbox
Last synced: 4 months ago
JSON representation
A very simple LNMP development machine based on CentOS 7, supports both php56 and php72.
- Host: GitHub
- URL: https://github.com/xinsnake/vagrant-webdev-centos
- Owner: xinsnake
- Created: 2017-09-04T13:13:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-09T11:37:42.000Z (over 7 years ago)
- Last Synced: 2025-01-01T14:26:50.310Z (6 months ago)
- Topics: centos, linux, vagrant, virtualbox
- Language: Shell
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vagrant-webdev-centos
Once upon a time you need a PHP and MySQL on a Linux machine to do your development.
It is called a LAMP stack because you have Linux + Apache + MySQL + PHP. Of course,
I replaced Apache with Nginx because... who is still using Apache?These days, however, you may not need that most of the time because you have so many
fun things to play with and PHP + MySQL is not the "cool kids'" game anymore.Nevertheless, you may sometimes want a LAMP server to fix some minor issue you built
5 years ago, or to show your friends how things got done in the old days... So here
is a machine for you!# Quick start #
* To start your development environment, please follow these commands:
```bash
$ git clone [email protected]:xinsnake/vagrant-webdev-centos.git
$ cd vagrant-webdev
$ vagrant up
```* After that please add the following lines to your "hosts" file:
```
192.168.156.10 localhost.localvm
192.168.156.10 php56.localhost.localvm
192.168.156.10 php72.localhost.localvm
192.168.156.10 pm.localhost.localvm
```* Default VirtualHost
* localhost.localvm (mapped to /vagrant/wwwroot)
* pm.localhost.localvm (mapped to /usr/share/phpMyAdmin) default root password: `password`* Please note:
* Keep your internet conection on and if you have a data limit please watch out. I don't know how much data it will
use but it will be more than 500MB.# VirtualBox and NFS file sharing #
You may notice the performance issue using VirtualBox and native file sharing, uncomment the ``config.vm.synced_folder``
__after__ the first "vagrant up". If you do it on the first "vagrant up", you will receive an error.# Quick summary of the configuration #
* CentOS 7
* Nginx
* MariaDB
* PHP-FPM
* phpMyAdmin# Resources #
* If you are new to Vagrant, please checkout http://www.vagrantup.com/ for a quick start
* CentOS base box is based on the bento box https://github.com/chef/bento