Fulltextsearch install fail

I have installed fulltextsearch following the instructions in the wiki. When I attempt to run the first indexing, this is the result:

sudo -u www-data php .occ fulltextsearch:index
Could not open input file: .occ

curl http://localhost:9200 produces this:
{“error”:{“root_cause”:[{“type”:“status_exception”,“reason”:“forbidden”,“header”:{“WWW-Authenticate”:“Basic”}}],“type”:“status_exception”,“reason”:“forbidden”,“header”:{“WWW-Authenticate”:“Basic”}},“status”:401}

I have confirmed that elasticsearch service is running.

Any suggestions?