To deploy BaseX XML database it is easiest to use the .zip BaseX package.
.zip archive somewherebasex which is root of unpacked archivebasexhttp script from the basex/bin directoryBaseX 7.7.2 [Server] Server was started (port: 1984) HTTP Server was started (port: 8984)
This means that both a database server and a Jetty HTTP server instance have been started successfully at respective ports, which you can call from the browser.
Now, to reach BaseX from the browser, after you have successfully run the basexhttp script, go to the following addresses:
The contents of the page you see at http://localhost:8984 can be changed in the restxq.xqm file, which you'll find in your basex/webapp directory. Add there other .xq and .xqm files (containing XQueries you want to use).
The REST interface at http://localhost:8984/rest can be called from your cgi scripts, e. g. those in your cgi-bin directory (outside basex installation).