X-Spam-Check-By: sourceware.org From: "Dave Korn" <dave DOT korn AT artimi DOT com> To: <cygwin AT cygwin DOT com> References: <Pine DOT LNX DOT 4 DOT 58 DOT 0705041536200 DOT 26549 AT dargo DOT trilug DOT org> Subject: RE: Problem running Cygwin Apache2 as Windows XP service Date: Sat, 5 May 2007 15:59:58 +0100 Message-ID: <01ba01c78f26$0cb7cd90$2e08a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <Pine.LNX.4.58.0705041536200.26549@dargo.trilug.org> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: <cygwin.cygwin.com> List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 On 04 May 2007 20:39, William Sutton wrote: > I cannot get Apache 2 under Windows XP Professional to run as a service > using cygrunsrv. In the present configuration, when I attempt to run a > simple environment variables cgi script, the error log tells me: > >> [Fri May 04 14:01:16 2007] [error] [client XXX.XXX.XXX.XXX] Symbolic link >> not allowed or link target not accessible: /srv/www/cgi-bin > > I'm thinking that the presense of symlinked directories shouldn't matter > since the configuration works just fine when apachectl is manually run via > an xterm. > > I've tried this using the SYSTEM user, my user, real directories, etc., with > no luck. From the command line, it works like a champ. Run as a service, > it fails. > > Any thoughts on what to do (details follow)? > - vhost in /srv > - mounting cgi-bin off a Samba export from a Linux box Do you have CYGWIN=smbntsec? > cygrunsrv -I apache -d "CYGWIN apache" -p /usr/sbin/apachectl2 -a "start" > (user set as the local 'William Sutton' user) Maybe the -i flag would help it behave more like it does from the commandline. cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/