I am trying to run the command to build the Elasticsearch index by using http://localhost/bin/plugin.php elasticsearch createindex in my browser.
The response is:
You don't have permission to access this resource.
What am I missing in doing this? Should I change the permissions of bin\plugin.php?
The plugin page says you have to use the command line to build the index.
The call via the browser address line already fails due to the parameter passing method, which does not represent a valid URL in this way. Furthermore, direct browser access to plugin.php is certainly prohibited via .htaccess.
- Michael Sy.
The direction of the / is what is messing me up. Must be in a website environment?
"simply run the provided command line tool to do so:
./bin/plugin.php elasticsearch createindex"
Do I use the Apache command line interface?
scottm Do I use the Apache command line interface?
Sorry, it would be better if supporters, who know more about this than I do, would comment on this.
scottm The direction of the / is what is messing me up.
Forward slashes are directoy separators on Unix/Linux systems. If you're on windows use backslashes instead.
Must be in a website environment?
No. On the command line.
There is no such thing.
Have you set up the ElasticSearch engine yet? TBH it does not seem like you have enough experience in systems administration to set up this plugin. It's a little bit more involved than your run-of-the-mill plugin.
andi You are likely correct - I am a hack that knows just enough to get into trouble. ElasticSearch engine is set up and running - just need the index now. I'll keep plugging away.