Re: [users@httpd] ScriptLog directive not working on Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Show your logging directives from the conf file.
Show the directory listing "ls -l" of your logging directory and one above it (parent directory) or ls -ld <path-to-log-directory>

- Aman Raheja

Tejas Sanghavi wrote:

Hi All,

I am also facing the same problem. I am using ScriptLog directive in
httpd.conf. When I am requesting for a cgi script, containing error, through
browser, the browser shows the error properly, but the Script Log is not
getting generated on RedHat Linux platforms (AS 2.1, WS 2.1 as well as AS
3.0) where Apache 2.0.53 is running.

When I am requesting the same script, the Apache 2.0.53 properly creates the
ScriptLog file on HP-UX machines (11i and 11iv2).

Pls guide me what's going wrong? Is this a problem on my Linux machine
setting or a Bug in the code???

NOTE: I've tried all the possibilities given in the attached mail, but then
also no positive outcome...

Thanks,
Tejas Sanghavi.


----- Original Message -----
From: "Boyle Owen" <Owen.Boyle@xxxxxxx>
To: <users@xxxxxxxxxxxxxxxx>
Sent: Monday, May 30, 2005 1:04 PM
Subject: RE: [users@httpd] Unable to generate ScriptLog


-----Original Message-----
From: Harish Sundaram [mailto:harish.sundaram@xxxxxxxxx]
Sent: Montag, 30. Mai 2005 07:24
To: users@xxxxxxxxxxxxxxxx
Subject: RE: [users@httpd] Unable to generate ScriptLog


Hi Aman,

Thanks for the reply..

Well, the problem still persists...
Initially, I hadn't used the User directive, but even after
using it as:
**********************
User apache2
**********************
still, no script log is getting generated.
You didn't read the docs carefully enough... ScriptLog is quite different
from the other logs in that it is owned and written to *only* by the apache
user. So you either have to:
1) Make the logs directory writeable by "apache2" (so it can create the
logfile)
or
2) login as "apache2" and create the file manually (eg, "touch
script_log")
Personnaly, I prefer 2) since you can check that the file really is
there...
Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.

Interestingly, I am not facing any such problem on HP-UX
(again HP-UX 11iv2
Itanium)

My main problem is that the file is not getting generated at all.
The next thing I did was to create the file (with the correct
permissions)
beforehand and to see if the file gets written into. Even that didn't
happen!
I checked out
http://httpd.apache.org/docs-2.0/mod/mod_cgi.html#scriptlog
earlier itself, but had not got any help on Linux specific problems of
ScriptLog

Please let me know if I'm doing something really wrong..

Thanks,
Harish.

-----Original Message-----
From: Aman Raheja [mailto:araheja@xxxxxxxxxxxxxx]
Sent: Saturday, May 28, 2005 11:53 PM
To: Apache Forum
Subject: Re: [users@httpd] Unable to generate ScriptLog


The logs/scrip_log file should be owned and writable by the
user mentioned
in User directive. For ex.

-rw-r--r--    1 apache   apache        592 May 28 13:21
/usr/local/apache2.0.53/logs/abc.com-script_log

Also make sure you HUP the server after you added the
ScriptLog directive.

For details, refer,
http://httpd.apache.org/docs-2.0/mod/mod_cgi.html#scriptlog

HTH
Aman Raheja
http://www.techquotes.com


On Sat, 28 May 2005 19:31:00 +0530, "Harish Sundaram"
<harish.sundaram@xxxxxxxxx> wrote :

Hi,

I am running Apache 2.0.53 on Linux Itanium machine.

I have set the following directive in httpd.conf:
***********************
ScriptLog logs/script_log
***********************
I put an error in a script and accessed it using IE, the
following message
gets correctly displayed:
----------------------------------
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable
to complete your request.

Please contact the server administrator, you@xxxxxxxxxxx
and inform them
of
the time the error occurred, and anything you might have
done that may
have
caused the error.

More information about this error may be available in the
server error
log.
------------------------------------------
I know that this is expected as there was a bug in the
script. But the
script_log file does not get created in /logs
What could have gone wrong?

Please help.

Thanks in advance...
Harish.



http://www.patni.com
World-Wide Partnerships. World-Class Solutions.

_____________________________________________________________________
This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review,
e-transmission
dissemination or other use of or taking of any action in
reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears
that this
mail has been forwarded to you without proper authority,
please notify
us immediately at netadmin@xxxxxxxxx and delete this mail.

_____________________________________________________________________

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP
Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at netadmin@xxxxxxxxx and delete this mail.
_____________________________________________________________________


Diese E-mail ist eine private und persönliche Kommunikation. Sie hat
keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This e-mail
is of a private and personal nature. It is not related to the exchange or
business activities of the SWX Group. Le présent e-mail est un message privé
et personnel, sans rapport avec l'activité boursière du Groupe SWX.
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. If
you receive this message in error, please notify the sender urgently and
then immediately delete the message and any copies of it from your system.
Please also immediately destroy any hardcopies of the message. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any part
of this message if you are not the intended recipient. The sender's company
reserves the right to monitor all e-mail communications through their
networks. Any views expressed in this message are those of the individual
sender, except where the message states otherwise and the sender is
authorised to state them to be the views of the sender's company.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at netadmin@xxxxxxxxx and delete this mail. _____________________________________________________________________

------------------------------------------------------------------------

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux