Installing BandHub
This chapter is for whoever sets BandHub up on your web hosting. It summarises the full installation guide that comes with BandHub.
On this page
Requirements
| Component | Minimum | Recommended |
|---|---|---|
| PHP | 7.4 | 8.1 or newer (tested through 8.5) |
| Database | MariaDB 10.3 / MySQL 5.7 | MariaDB 10.6+ |
| Web server | Apache 2.4 | Apache 2.4 with mod_rewrite |
| PHP extensions | pdo, pdo_mysql, fileinfo | plus mbstring, openssl |
| Upload size | 8 MB | 20 MB or more (for scanned music) |
1. Create the database
In phpMyAdmin or your hosting control panel, create a database (character set utf8mb4) and a database user with all privileges on it.
CREATE DATABASE bandhub CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
2. Run the SQL files in order
Import each file from the sql_files folder, one at a time, in this order:
| File | Adds |
|---|---|
| 00_create_database.sql | The database |
| 01_accounts_module.sql | Users, roles, modules, site settings, activity log |
| 02_members_module.sql | Members, sections, instruments, registration, ensembles |
| 03_events_module.sql | Events, venues, event types, ensembles, RSVPs, seating templates, audience counts, concert programs |
| 04_comms_module.sql | Announcements, email, newsletters, ads, inquiries, contacts and threads, polls |
| 05_library_module.sql | Music library, lending, library programs, digital groups |
| 06_finance_module.sql | Finance, including budgets |
| 07_docs_module.sql | Documents |
These files are for new installs. To upgrade a site that is already running, back up the database first, then run only the update files you haven't run before — don't run these module files on it.
3. Upload the files
Upload the bandhub folder to your web root, so the address is yourband.org/bandhub. Include hidden files such as .htaccess. Make sure these folders are writable by the web server: comms/uploads, docs/uploads, finance/uploads and events/program_images.
4. Edit the configuration
Open includes/config.php and set:
DB_HOST,DB_NAME,DB_USER,DB_PASS— your database detailsAPP_NAME— your band's nameBASE_URL—'/bandhub', or''if BandHub is the whole siteMAIL_FROMandMAIL_FROM_NAME— the sender for email blastsMUSIC_STORAGE_PATH— the folder holding scanned music, if you use digital parts
5. First sign-in and setup
- Sign in as
adminwith the starting password from the installation guide, and choose a new password when asked. - Switch off any modules you don't need under Module Management.
- Pick a theme.
- Fill in Finance Settings (organization name, fiscal year, dues).
- Add instruments and sections, then import or add your members.
- Create user accounts for your officers.