How to use this box with Vagrant:

Vagrant.configure("2") do |config|
  config.vm.box = "benWare/centos7-php7-lemp-lamp"
end
vagrant init benWare/centos7-php7-lemp-lamp
vagrant up

This version was created over 4 years ago.

CentOS 7 base with kernel v4.9 by default (kernel 3.10 is still available)

  • NGINX 1.10.2
  • Apache 2.4.6
  • MySQL 5.6 (Percona)
  • PHP 7 with op-cache

Other software installed:

  • git (latest version)
  • NodeJS v6.9.2 + NPM v3.10.9
  • Composer 1.2.0

Notes:

Both NGINX and Apache root directories are set as /var/www/html by default.

Vagrantfile provision example

config.vm.synced_folder "./project", "/var/www/html"

...

config.vm.provision "shell", inline: <<-SHELL
    systemctl start nginx
    systemctl enable nginx

    # systemctl start httpd
    # systemctl enable httpd
SHELL



Some useful informations:

  • Apache was installed via YUM from default CentOS repo.
  • PHP7 was installed via YUM from epel-release repo. Base package name is php70w
  • Linux Kernel v4.9 comes from elrepo-release repo. Base package name is kernel-ml. More details here
1 provider for this version.
  • virtualbox Hosted by Vagrant Cloud (893 MB)

This version was created about 5 years ago.

CentOS 7 base with kernel v4.7 by default (kernel 3.10 is still available)

  • NGINX
  • Apache
  • MySQL (PerconaDB)
  • PHP 7 with op-cache

Other software installed:

  • git (latest version)
  • NodeJS v6.4.0 + NPM v3.10.6
  • Composer 1.2.0

Notes:

Both NGINX and Apache root directories are set as /var/www/html by default.

Vagrantfile provision example

config.vm.synced_folder "./project", "/var/www/html"

...

config.vm.provision "shell", inline: <<-SHELL
    systemctl start nginx
    systemctl enable nginx

    # systemctl start httpd
    # systemctl enable httpd
SHELL



Some useful informations:

  • NGINX was installed via YUM from default CentOS repo. Feel free to add official NGINX repo if you want.
  • Apache was installed via YUM from default CentOS repo.
  • PHP7 was installed via YUM from epel-release repo. Base package name is php70w
  • Linux Kernel v4.7 comes from elrepo-release repo. Base package name is kernel-ml. More details here
1 provider for this version.
  • virtualbox Hosted by Vagrant Cloud (859 MB)