Solved

Apache pipe logging problem on Solaris

Posted on 2007-03-21
2
473 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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

815 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

11 Experts available now in Live!

Get 1:1 Help Now