n2r does not work
-
I have followed the guide upto installing nginx but I have an issue with using the n2r command.
Despite following the guide to adding bash aliases i get the following error when using n2r to restart nginx:
Stopping nginx: nginx. usage: sudo -h | -K | -k | -L | -l | -V | -v usage: sudo [-bEHPS] [-p prompt] [-u username|#uid] [VAR=value] {-i | -s | <command>} usage: sudo -e [-S] [-p prompt] [-u username|#uid] file ... Starting nginx: [alert]: could not open error log file: open() "/usr/local/nginx/logs/error.log" failed (13: Permission denied) 2010/03/27 04:38:11 [warn] 5393#0: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /usr/local/nginx/conf/nginx.conf:1 2010/03/27 04:38:11 [emerg] 5393#0: open() "/usr/local/nginx/logs/access.log" failed (13: Permission denied)It seems to be a permissions issue but i am not sure how to fix it.
Any ideas
Posted 2 years ago # -
try this Andrew:-
sudo /etc/init.d/nginx restart
any errors?
Posted 2 years ago # -
Hi
No errors when restarting manually.
Andrew
Posted 2 years ago # -
that's the main thing.
what OS are you using?
Posted 2 years ago # -
Am using Ubuntu 8.04LTS. Followed the guide completely through to the last section and had no other issues.
Andrew
PS the guide is amazing, would have never got everything up and running without it
Posted 2 years ago # -
are you root when you run n2r? I set up nginx on ubuntu 8.04LTS as well and n2r works fine for me.
Posted 2 years ago # -
if i run sudo n2r i seem to get seperate errors??
Posted 2 years ago # -
@Andrew .. big cheers, good to hear
@osb good question .. you *may* have been sudo by mistake when you edited the bashrc file originally, in which case those aliases would work for sude but not your user. it'd be obvious though, cos you'd have a colorful terminal for root and standard black and white for your regular user.
Posted 2 years ago # -
Andrew, what are the seperate errors?
Posted 2 years ago # -
@Andrew .. sorry, think we posted at the same time .. it wasn't good to hear:-
"if i run sudo n2r i seem to get seperate errors??"
!
you can't run sudo n2r, that won't work.
Posted 2 years ago #
Reply
You must log in to post.
Want HTML?
a blockquote code em strong ul ol liPlace code between backticks `codeHere`
You've got it.
