Solved

Apache pipe logging problem on Solaris

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

Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to solve ssl error handshake failure alert on IE 1 167
WAMP server installation, getting error popups, DLLs missing 5 65
Sed question 2 69
change time in cron 4 67
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
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.:

895 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

17 Experts available now in Live!

Get 1:1 Help Now