Cant start Nginx on Mac OS X

Sorry for the newbie question. I am new to nginx. i installed it
successfully on my mac, but when i try to start it, i get this error

nginx: [alert] could not open error log file: open()
“/opt/local/var/log/nginx/error.log” failed (13: Permission denied)
2011/11/20 22:15:20 [emerg] 1620#0: open()
“/opt/local/etc/nginx/nginx.conf” failed (2: No such file or directory)

Can someone please help me resolve this? Thank you

Kofi

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,218663,218663#msg-218663

Permission denied

start nginx use root or sudo

blog: http://chenxiaoyu.org

super!.. one error went away, now i am left with just one

nginx: [emerg] open() “/opt/local/etc/nginx/nginx.conf” failed (2: No
such file or directory)

Any ideas why that is?

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,218663,218667#msg-218667

On Mon, Nov 21, 2011 at 11:34 AM, scriptonian [email protected]
wrote:

super!.. one error went away, now i am left with just one

nginx: [emerg] open() “/opt/local/etc/nginx/nginx.conf” failed (2: No
such file or directory)

Any ideas why that is?

…missing config file?


O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

Reposting…

fastcgi.conf
koi-win
scgi_params.example
fastcgi.conf.example
mime.types
uwsgi_params
fastcgi_params
mime.types.example
uwsgi_params.example
fastcgi_params.example
nginx.conf.example
win-utf
koi-utf
scgi_params

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,218663,218671#msg-218671

Yes but why is it missing? :slight_smile:

I installed the server :frowning: … shouldn’t the installation put that file
there during setup?

i see only these files in the /etc/nginx/ folder

fastcgi.conf koi-win scgi_params.example
fastcgi.conf.example mime.types uwsgi_params
fastcgi_params mime.types.example uwsgi_params.example
fastcgi_params.example nginx.conf.example win-utf
koi-utf scgi_params

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,218663,218670#msg-218670

On Mon, Nov 21, 2011 at 11:52 AM, scriptonian [email protected]
wrote:

Yes but why is it missing? :slight_smile:

I installed the server :frowning: … shouldn’t the installation put that file
there during setup?

Even if it did, you should edit the config anyway. The
nginx.conf.example should help.


O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

在 2011-11-20日的 23:34 -0500,scriptonian写道:


nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

make sure that the path /opt/local/etc/nginx/ existed,and give it umask
775.

also,do it under ROOT.


Best regards,
Sharl.Jimh.Tsin (From China Obviously Taiwan INCLUDED)

Using Gmail? Please read this important notice:
http://www.fsf.org/campaigns/jstrap/gmail?10073.

Thanks so much guys. I got all the errors to go away… however, when i
start the server i get this

nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] still could not bind()

looks like a port conflict to me. i dont know. but i dont have any other
servers running. when i hit http://localhost/ 404 Not Found (
nginx/1.0.8 )

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,218663,218713#msg-218713

and when i do

nginx -s stop

i can NOT even get a 404 error page. so something is working right at
least. but i still have a blocker.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,218663,218714#msg-218714

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs