This repository has been archived by the owner. It is now read-only.
[ABANDONED] Vagrant VM with bash(shell) provision for PHP development
Shell
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
configs
scripts
.gitignore
LICENSE
README.md
Vagrantfile
config.sh
manual.sh

README.md

This package is abandoned and no longer maintained. The author suggests using the Ansible instead.

PHPell

PHPell is an open source Vagrant VM configuration with bash(sh) provision for PHP development.

It was inspired by PuPHPet and Phansible.

PHPell includes:

  • Vagrant VM with Ubuntu 16.04 and bash(shell) provision.
  • Oracle Java 8 (6, 7);
  • PHP 5.6 (7.0, 7.1) with:
    • Apache 2.4 + php_mod,
    • Nginx stable (development) + Apache 2.4 + php_mod,
    • Nginx stable (development) + PHP-FPM;
  • MySQL 5.6 (5.5);
  • MariaDB 10.1 (10.0);
  • PostgreSQL 9.6 (9.4, 9.5);
  • Memcached (+ Memcache/Memcached PHP extensions);

Installation

  1. Edit configuration in /Vagrantfile and /config.sh

  2. Install Vagrant VM from console:

cd /path/to/your/phpell
vagrant up

Usage

Run Vagrant VM from console:

cd /path/to/your/phpell
vagrant ssh

###Helpers

In the VM you can use helpers for virtual hosts and databases management:

  1. Helper create-host create new host and new user (has name as new host) and create-web-user create only new user:

    sudo create-host --host=example.local --password=password_for_example
    sudo create-web-user --user=example.local --password=password_for_example
  2. Helper enable-host enable host:

    sudo enable-host --host=example.local
  3. Helper disable-host disable host:

    sudo disable-host --host=example.local
  4. Helper create-mysql-db create new empty MySQL DB with granted user:

    create-mysql-db --database=example_db --user=example.local --password=password_for_example --root=root_password_for_example
    mysql -u example.local -ppassword_for_example -D example_db
  5. Helper backup-mysql-db zip and backup MySQL DB to /var/backups/example.local directory:

    backup-mysql-db --database=example_db --user=example.local --password=password_for_example
  6. Helper create-postgres-db create new empty Postgres DB with granted user:

    sudo create-postgres-db --database=example_db --user=example.local --password=password_for_example
    sudo -u example.local psql -U example.local -d example_db
  7. Helper backup-postgres-db zip and backup PostgreSQL DB to /var/backups/example.local directory:

    sudo -u example.local backup-postgres-db --database=example_db --user=example.local

License

The PHPell is open source software licensed under the GPL-3.0 license.