Add user per custom php (nginx, ubuntu, mysql)

Hey there!


Problem:
I can’t find any instructions how to add an user per custom php file.

Software:

Summary

I am using Nextcloud 15.0.7 and MySQL for my databases.
Nginx as my webserver. Ubuntu Disco (19.04) as my OS


Research yet:

Summary
* I found only one "solution", but there was an insert into a table called "login", but my database doesn't have a table with this name.

* I also tried to call the "public function createUser($username, $password)" but this ended with an HTTP 500 .... so ¯\ _(ツ)_/¯

I would be so glad if somebody could help me :slight_smile: