Skip to content

Full webstack for PHP developing - LEMP - Centos 7, Nginx, Percona Database, PHP-FPM 5

Notifications You must be signed in to change notification settings

rebjan/ansible-lemp-centos7

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ansible-lemp-centos7

Full webstack for PHP developing - LEMP - Centos 7, Nginx, Percona Database, PHP-FPM 5

  • Requirements

    • Vagrant with Virtual Box
    • Ansible
  • Get Centos 7 Box

  • Check out this git. Type this command:

     	git clone [email protected]:gxcsoft/ansible-lemp-centos7.git
    
  • Local vagrant developement machine

    • Move to check out folder
    • vagrant box add gxc your_centos_7_box_location
    • vagrant up
    • vagrant provision (to run ansible if vagrant up is not run provision automatically)
    • vagrant ssh (access to your new virtual machine)
  • Production server

    • Move to check_out_folder/ansible
    • Create your_server_role_config.yml. Here is an example:
     	---
     	- hosts: host_config_name
     	  sudo: yes
     	  roles:
     	  - common
     	  - percona
     	  - nginx
     	  - php-fpm-55
     	  - nginx-conf
    
    • Add server ip address in to hosts. Here is an example:
     	[host_config_name]
     	128.199.179.xx
    
    • Type this command to run ansible (ansible must be installed)
     	ansible-playbook -i ./hosts -u your_server_ssh_account your_server_role_config.yml
    
  • Any questions? Please add new issue or send me an email [email protected]

About

Full webstack for PHP developing - LEMP - Centos 7, Nginx, Percona Database, PHP-FPM 5

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 99.2%
  • PHP 0.8%