User Tools

Site Tools


code:vxmppb:api-setup

vXMPPb API Install

..


  1. Download.
wget https://dl.vanderwarker.family/vxmppb/api.php.dist
  1. Edit api.php to your needs. The most basic setup, requires filling in the database info at the bottom of the page.

    CTRL+WCTRL+T2754ENTER
cp api.php.dist api.php && nano api.php
  1. 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;
  1. Download database.

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

mysql -u vxmppb -p{PASSWORD} vxmppb < api.sql.dist
  1. 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: 2022/04/28 18:22 by stephen