Skip to content

A very simple LNMP development machine based on CentOS 7, supports both php56 and php72.

Notifications You must be signed in to change notification settings

xinsnake/vagrant-webdev-centos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:
$ git clone git@github.com: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

About

A very simple LNMP development machine based on CentOS 7, supports both php56 and php72.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published