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 14.10 and bash(shell) provision.
- Oracle Java 8 (6, 7);
- Apache 2.4;
- PHP 5.6 (5.5, 5.6);
- Nginx 1.7 (1.6);
- MySQL 5.6 (5.6);
- MariaDB 10.0 (5.5);
- PostgreSQL 9.4 (9.3);
- Add Memcached;
- Add Redis;
- Add MongoDB;
- Add Nginx + PHP-FPM;
- Add HHVM
-
Edit configuration in Vagrantfile and config.sh
-
Install Vagrant VM from console:
cd /path/to/your/phpell
vagrant up
Run Vagrant VM from console:
cd /path/to/your/phpell
vagrant ssh
In the VM you can use helpers for virtual hosts:
-
Helper
create-host
create new host and new user (has name as new host) andcreate-web-user
create only new user:sudo create-host example.local password_for_example sudo create-web-user example.local password_for_example
-
Helper
enable-host
enable host:sudo enable-host example.local
-
Helper
disable-host
disable host:sudo disable-host example.local
-
Helper
create-mysql-db
create new empty MySQL DB with granted user:create-mysql-db example_db example.local password_for_example root_password mysql -u example.local -ppassword_for_example -d example_db
-
Helper
mysql-backup
zip and backup MySQL DB to/var/backups/example.local
directory:mysql-backup example_db example.local password_for_example
-
Helper
create-postgres-db
create new empty Postgres DB with granted user:sudo create-postgres-db example_db example.local password_for_example sudo -u example.local psql -U example.local -d example_db
-
Helper
mysql-postgres
zip and backup Postgres DB to/var/backups/example.local
directory:mysql-postgres example_db example.local password_for_example
The PHPell is open source software licensed under the GPLv3 license.