Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nginx is installed but command not found

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?

like image 500
Digital_affection Avatar asked Oct 19 '25 12:10

Digital_affection


2 Answers

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

PATH=/usr/sbin/:$PATH
like image 95
zimrob Avatar answered Oct 22 '25 05:10

zimrob


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

like image 20
Piakkaa Avatar answered Oct 22 '25 04:10

Piakkaa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!