|
|
The following will help you get a local test server running that can be used with DreamPi or BlastEm clients. Setup to support VoIP/PSTN clients is much more in-depth and will be covered later.
|
|
|
|
|
|
1. Install PHP (7.4+), MySQL/MariaDB, and the cURL, GD, and MySQL extensions for PHP. (On ubuntu: `apt install php-cli mariadb-server php-curl php-gd php-mysql`)
|
|
|
2. Create a new database: `create database roofgarden;`
|
|
|
3. Add a new user to the db: `grant all privileges on roofgarden.* to 'roofgarden'@'%' identified by 'roofgarden';`
|
|
|
4. Import the db schema from the repo: `mysql roofgarden < schema.sql`
|
|
|
5. Create a user named "test" to use with blastem: `insert into sipaccounts values(0, 'test', 'test', 'test', 'test', 'emu', NULL);`
|
|
|
6. Make a copy of secret.php.dist named secret.php, and edit it with your database host, user, password, and db name.
|
|
|
7. Launch Roofgarden. `php roofgarden.php`
|
|
|
8. Launch blastem, set the server to your server address, and use `test` as the identity value. |
|
|
\ No newline at end of file |
|
|
1. Install PHP CLI (7.4+) including the cURL, GD, and MySQL extensions, and MySQL/MariaDB (server).
|
|
|
|
|
|
1a. Ubuntu: `apt install mariadb-server php-cli php-curl php-gd php-mysql`
|
|
|
|
|
|
2. Connect to your SQL server: `sudo mysql`
|
|
|
|
|
|
2a. Create a new database: `create database roofgarden;`
|
|
|
|
|
|
2b. Add a new user to the db: `grant all privileges on roofgarden.* to 'roofgarden'@'%' identified by 'roofgarden';`
|
|
|
|
|
|
2c. Import the db schema from the repo: `\! mysql roofgarden < schema.sql`
|
|
|
|
|
|
2d. Create a user named "test" to use with blastem: `insert into sipaccounts values(0, 'test', 'test', 'test', 'test', 'emu', NULL);` (id, mac, sn, user, password, type, comment)
|
|
|
|
|
|
3. Make a copy of secret.php.dist named secret.php
|
|
|
|
|
|
3a. Edit the new file with your database host, user, password, and database name details.
|
|
|
|
|
|
4. Launch Roofgarden: `php roofgarden.php`
|
|
|
5. Launch blastem.
|
|
|
6. Set the server to your server address, and use `test` as the identity value. |
|
|
\ No newline at end of file |