Solved

Apache pipe logging problem on Solaris

Posted on 2007-03-21
2
486 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
ID: 18768567
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
ID: 18781570
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

856 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