Solved

Apache pipe logging problem on Solaris

Posted on 2007-03-21
2
453 Views
Last Modified: 2013-12-27
Hi,

I am changing the TranferLog to CustomLog for Apache logging using the pipe to avoid the big size log problem.
This is on Solaris.

In the following code segment in httpd.conf, I commented the Transfer log, but added the CustomLog.
The access log is getting created with TransferLog, but the same access.log is not being created in case of CustomLog. I  follwed the Apache.org and addet the CustomLog statemet as shown below.

I also tried the CustomLog's access.log path with logs/access.log, similar to TransferLog.

<VirtualHost *:9820>
#TransferLog  logs/access.log
CustomLog  "|/opt/xyz/xxx/apache/bin/logresolve >> /opt/xyz/xxx/apache/logs/access.log" common
ErrorLog     logs/error.log
</VirtualHost>


the error_log is showing the following errors
ld.so.1: logresolve: fatal: libgcc_s.so.1: open failed: No such file or directory
ld.so.1: logresolve: fatal: libgcc_s.so.1: open failed: No such file or directory
piped log program '/opt/xyz/xxx/apache/bin/logresolve >> /opt/xyz/xxx/apache/logs/access.log' failed une
xpectedly

Thanks


0
Comment
Question by:srini_kandimalla
2 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 500 total points
Comment Utility
Hi srini_kandimalla,
   To help use to help you, you should post the information about your
OS version (and platform), appache version and how was it installed
(eg, from binary package, or complie from source, if you build it from source, you need to give infor about your C/gcc complier).

Now to get back to your question,  you might forgot to install gcc/gcclib in your system, or you apache cann't locate the libgcc_s.so.1 file.

Type in:
find / -type f -name " libgcc_s.so.1"
to see if the file is there, if it exists.

add:
 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path-to-libgcc_s.so.1/
export  LD_LIBRARY_PATH

to the apache startup script, must put them  before start apache.

If you get the binary package from somewhere else, it is better to download the binary packages  for your version of OS from:
http://sunfreeware.com/

please make sure that you also download and install all the dependencies packages specified in the download readme page.
0
 

Author Comment

by:srini_kandimalla
Comment Utility
I  have set the LD_LIBRARY_PATH to libgcc_s.so.1 path. But still I faced tha problems.
Finally I copied libgcc_s.so.1 to /usr/lib. Then it start working.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now