delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/03/05/11:37:18

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Marc Girod <marc DOT girod AT gmail DOT com>
Subject: Re: Starting http2: Win32 error 1062
Date: Wed, 5 Mar 2008 16:36:15 +0000 (UTC)
Lines: 50
Message-ID: <loom.20080305T162516-907@post.gmane.org>
References: <loom DOT 20080305T142334-449 AT post DOT gmane DOT org> <000401c87ed2$ab7ac1c0$2708a8c0 AT CAM DOT ARTIMI DOT COM>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi Dave,

Dave Korn <dave.korn <at> artimi.com> writes:

> fortunately your cygcheck had the answer

This is also why I didn't add these, knowing they would be redundant.

>   That error message does not say that anything is wrong with
> /var/log/apache2.  It says that something is wrong with
> /var/log/apache2/error_log.
> 
> > -rw-r--r--  1 emagiro Domain Users 4788 Mar  3 12:01 error_log

Thanks, indeed.
 
> Account             : LocalSystem
> ^^^^^^^^^^         ^^^^^^^^^^^^^^^^
> 
> you have installed it to run as the LocalSystem user.  LocalSystem does not
> have write permission for that file because LocalSystem is not you.

cygrunsrv did it... I ran cygrnsrv.

>   This probably happened because you probably manually ran apache2 under
> your own user id while doing the installation

Now that you mention it, this is correct.

> - this is why we really need to know exactly what you did and every step
> on the way - and it was the first time it had ever been run, which means
> that it created the files for the logs for the first time because they
> didn't exists yet, which means it was running as you and created them
> only with perms for you.

Makes sense.
 
>   You chould 'chown' the log files so LocalSystem owns them, or you could
> delete them and let apache2 recreate them next time it runs.

Thanks. It worked (I did the latter, which resulted in:

apache2> ll
total 9
drwxrwxrwx+ 2 emagiro Users             0 Mar  5 16:32 .
drwxrwxrwx+ 3 emagiro Users             0 Mar  5 12:36 ..
-rw-rw-rw-  1 SYSTEM  Administrators    0 Mar  5 16:32 access_log
-rw-rw-rw-  1 SYSTEM  Administrators 3255 Mar  5 16:32 error_log

Marc


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019