nginx start failing, says error.log doesn't exist

Posted by Blankman on Server Fault See other posts from Server Fault or by Blankman
Published on 2010-05-25T00:38:21Z Indexed on 2010/05/25 4:02 UTC
Read the original article Hit count: 498

Filed under:
|
|

I structured my sites like:

/home/www/domain.com/public,private, log, backup

In the log folder, I created a blank error.log and access.log.

My nginx file in sites-available for the domain looks like:

server 

{

      access_log /home/www/domain1.com/log/access.log;
      error_log /home/www/domain1.com/log/error.log;

}

Trying to start nginx it says:

starting nginx: the config file /etc/nginx/nginx/conf syntax is ok
[emrg] open() ".../access.log" failed (2: no such file or directory)

Is this a permission issue?

© Server Fault or respective owner

nginx start failing, says error.log doesn't exist

Posted by sososo on Super User See other posts from Super User or by sososo
Published on 2010-05-25T00:38:21Z Indexed on 2010/05/25 0:41 UTC
Read the original article Hit count: 498

Filed under:
|
|

I structured my sites like:

/home/www/domain.com/public,private, log, backup

In the log folder, I created a blank error.log and access.log.

My nginx file in sites-available for the domain looks like:

server 

{

      access_log /home/www/domain1.com/log/access.log;
      error_log /home/www/domain1.com/log/error.log;

}

Trying to start nginx it says:

starting nginx: the config file /etc/nginx/nginx/conf syntax is ok
[emrg] open() ".../access.log" failed (2: no such file or directory)

Is this a permission issue?

© Super User or respective owner

Related posts about ubuntu

Related posts about server