Score:0

Error: Permission denied (os error 13) When I want to run a program is in system path

it flag

I am using meilisearch for a php/laravel project.

I want to add it to one of the directories are in system path to access faster to that.

so I put meilisearch program file in /usr/local/bin directory.

after that I set permission of that file like below:

sudo chmod 777 meilisearch

sudo chown farhad:www-data meilisearch

But the problem is:

When I call meilisearch command from the directories belongs to farhad user the is no problem. but when is call this command in the directory e.g. /usr/local I got this error:

Error: Permission denied (os error 13)

Can anyone help me to fix the problem?

Score:0
cn flag

It seems that meilisearch cares about which folder it is run from.

So you'll need to cd to a good directory first.

If you're using Laravel Forge, and are running Meilisearch as a Daemon, using Supervisor, you need to set the home directory to be /home/forge.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.