Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8831541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:19:58+00:00 2026-06-14T08:19:58+00:00

I compiled the nginx on Ubuntu myself. I start my nginx with -c nginx.conf

  • 0

I compiled the nginx on Ubuntu myself.
I start my nginx with -c nginx.conf parameter.
In my nginx.conf file, I try to turn off error log with but failed.

error_log /dev/null crit;

Still got the error message:
nginx: [alert] could not open error log file: open() “/usr/nginx/logs/error.log” failed (2: No such file or directory)

How could I turn off this log or change its location?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:20:00+00:00Added an answer on June 14, 2026 at 8:20 am

    The syntax for disabling the error log is ok, but the docs state that a default logfile is used before the config is read. (which seems reasonable because how would it otherwise tell you you have an error in your config)

    Try creating this file by hand with the correct permissions for the user that runs nginx. Or try starting the server as root.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On Ubuntu with REE 1.8.7, with nginx 0.8.53 manually compiled with the Passenger 3
I try to start nginx web server with uwsgi and python django at backend
I just compiled and installed nginx in RPM based Linux. Noticed that log rotation
I compiled this (gcc compiler) : #include< stdio.h> main() { unsigned char ch; FILE
Having a weird issue with MemoryError in my Django project. Ubuntu 11 Apache2 Nginx
I installed: Centos 6 Ruby 1.9.3-rc1 Passenger gem and passenger nginx module ( compiled
I tried default Passenger Nginx installation steps, but it couldn't succeed, I am newbie
I compiled Emacs 23 on OS X Leopard and I am loving it. But
I compiled the following four lines of code into a file called foo.exe, hoping
I compiled and installed pycrypto 2.6 on Mac OSX Lion with Python 3.2 but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.