phpell
phpell copied to clipboard
[ABANDONED] Vagrant VM with bash(shell) provision for PHP development
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
-
Edit configuration in /Vagrantfile and /config.sh
-
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:
-
Helper
create-hostcreate new host and new user (has name as new host) andcreate-web-usercreate only new user:sudo create-host --host=example.local --password=password_for_example sudo create-web-user --user=example.local --password=password_for_example -
Helper
enable-hostenable host:sudo enable-host --host=example.local -
Helper
disable-hostdisable host:sudo disable-host --host=example.local -
Helper
create-mysql-dbcreate 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 -
Helper
backup-mysql-dbzip and backup MySQL DB to/var/backups/example.localdirectory:backup-mysql-db --database=example_db --user=example.local --password=password_for_example -
Helper
create-postgres-dbcreate 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 -
Helper
backup-postgres-dbzip and backup PostgreSQL DB to/var/backups/example.localdirectory: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.