User Tools

Site Tools


code:vxmppb:api-setup

vXMPPb API Install

..


  1. Download.
wget https://dl.vanderwarker.family/vxmppb/api.php.dist

Edit api.php to your needs.

The most basic setup, requires filling in the database info at the bottom of the page.

cp api.php.dist api.php && nano api.php

Create database user.

mysql -u root -p
CREATE USER 'vxmppb'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE vxmppb;
GRANT ALL PRIVILEGES ON vxmppb.* TO vxmppb'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Download database.

wget https://dl.vanderwarker.family/vxmppb/api.sql.dist

Import database.

mysql -u vxmppb -p{PASSWORD} vxmppb < api.sql.dist

Run it!

php -S 0.0.0.0:8080

This is useful for development. For a full setup see Apache setup or Nginx setup

Now see this page to begin tracking!

code/vxmppb/api-setup.txt · Last modified: 2023/11/07 20:23 by stephen