PHP Server Setup

Finish the database setup to run Next Knock live.

This PHP build expects a MySQL or MariaDB database. Database credentials are loaded from database/db.txt, so once that file and the schema are ready the site can go live immediately.

1. Add your database details

Create database/db.txt using the example format and enter your live server host, database name, username, password, and optional baseUrl.

2. Create the database

Use your hosting panel or phpMyAdmin to create a MySQL database, then import database/schema.mysql.sql.

3. Set folder permissions

Make sure static/uploads is writable so hosts can upload room and hostel images.

4. Optional override file

config/config.php is optional for this build. If you leave it out, the app will still use database/db.txt as the database source.

Config missing

database/db.txt has not been detected yet.

Add that file with your live database credentials and refresh this page.