Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Apache pipe logging problem on Solaris

Posted on 2007-03-21
2
Medium Priority
?
519 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 1500 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

Optimum High-Definition Video Viewing and Control

The ATEN VM0404HA 4x4 4K HDMI Matrix Switch supports 4K resolutions of UHD (3840 x 2160) and DCI (4096 x 2160) with refresh rates of 30 Hz (4:4:4) and 60 Hz (4:2:0). It is ideal for applications where the routing of 4K digital signals is required.

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…
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.:
Suggested Courses

688 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