httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Johnson <...@indietorrent.org>
Subject Re: [users@httpd] Where are error logs created on windows?
Date Mon, 04 Mar 2013 13:46:23 GMT


On 3/3/2013 9:00 PM, Pranav Kumar Ojha wrote:
> Alright, starting httpd as administrator helped creating the file and
> resolved the issue. Thanks you! 
> 
> Thanks,
> Pranav 

You're very welcome.

For the sake of thoroughness, starting Apache as Administrator is
necessary only when UAC (the User Account Control mechanism introduced
with Windows Vista and present [in various forms] in all Windows
operating systems thereafter) is enabled.

Please note also that the Administrator requirement stems from the fact
that Apache is installed to a "protected" directory (C:\Program Files).
If you install Apache elsewhere, it will not necessarily require
Administrator privileges to write to its logs.

Enjoy!

-Ben

>> Date: Sun, 3 Mar 2013 15:20:25 -0500
>> From: ben@indietorrent.org
>> To: users@httpd.apache.org
>> Subject: Re: [users@httpd] Where are error logs created on windows?
>>
>>
>>
>> On 3/3/2013 11:40 AM, Pranav Kumar Ojha wrote:
>> > Hi all,
>> >
>> > I have recently installed latest version of Apache2.2 on windows 7. I am
>> > operating as an administrator with username as 'adminuser' on this
>> > machine. The apache webserver is installed at this location: 'C:\Program
>> > Files\Apache Software Foundation\Apache2.2\' on this computer and all
>> > folders have write permission for 'adminuser'.
>> >
>> > After installing Apache 2.2 I made sure the basic "It works!" page was
>> > shown properly and the sample script which shows environment variables
>> > also works fine, but when I use a python-based simple CGI script, I get
>> > 'Internal Server error', although this script works fine when run
>> > standalone. This script only takes in a name in a text box and says
>> > hello to that name on 'Submit'.
>> >
>> > The main problem is that in logs folder, I do not see any access logs or
>> > error logs being created for this internal server error in the logs
>> > directory. My current 'LogLevel' is defined as "debug" in httpd.conf.
>> >
>> > *Why are error/access logs not being written in apache's "logs"
>> > directory ? *
>> > Log dir location: 'C:\Program Files\Apache Software
>> > Foundation\Apache2.2\logs'
>> > *
>> > *
>> > Thanks,
>> > Pranav
>>
>> How are you starting Apache? Are you running Apache as a service? Or are
>> you starting it from the command-line?
>>
>> If you are running Apache as a service, then Apache will have the
>> effective permissions of the account under which the service is running
>> (not the permissions of your user account).
>>
>> If you are starting Apache from the command-line, then you need to be
>> sure that you launch the command prompt (cmd.exe) with "Run as
>> Administrator" and then start Apache, e.g., with "httpd --console".
>>
>> -Ben
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message