3

so i'm trying to install matrix synapse on ubuntu. i followed these steps

i wrote all the commands just fine until "the step for Activate the virtual host file and test the configuration." Now when i write this Command

nginx -t

i face with this Error :

bash:: command not found

i checked that nginx is installed or not but apparently it is installed . But the Commands are somehow unknown for ubuntu ! Can you guys help me with this?

2 Answers2

1

If nginx is in path /usr/sbin/ then just try this command:

PATH=/usr/sbin/:$PATH
zimrob
  • 19
  • 1
0

first check the location of the installed nginx executable if you installed with apt then it should be in /usr/sbin/ check that your path contain this directory. if it doesnt, type in this command

PATH=$PATH:~/usr/sbin

Piakkaa
  • 740
  • 6
  • 12