Solved

cgi problem with apache

Posted on 2002-07-18
6
314 Views
Last Modified: 2007-12-19
hi all,
i wrote a cgi that use some so files(shared object).
when i run it from a shell, everything is ok.
when i run it as cgi, it failed and said it can't find the so  file.
i added to httpd.conf:
"SetEnv LD_LIBRARY_PATH /mypath/toso"
and it still not working.

do you have any idea ????

appreciate any help
Ori
0
Comment
Question by:o_helman
  • 3
  • 2
6 Comments
 
LVL 15

Expert Comment

by:samri
ID: 7162411
Ori,

I'm not much of a programmer.  Basically the I would try the following;

Dirty trick: Did you try copying the whatever.so to where the standard libs are, maybe is /usr/lib, or /usr/local/lib

Another option is to reconfigure ld.  Update the ld.so.conf, and rerun ldconfig.

http://www.imaxx.net/~thrytis/glibc/Glibc2-HOWTO-4.html

cheers.

0
 

Author Comment

by:o_helman
ID: 7162429
did that already.
not working.

i ran a new script as cgi and the result was like this:
LD_LIBRARY_PATH= /home/ori/wiexp
/usr/bin/ldd /usr/local/apacge/cgi-bin/convert
        libsc_da.so => not found
        libsc_ex.so => not found
        libsc_fa.so => not found
        libsc_ch.so => not found
        libsc_fi.so => not found
        libsc_ut.so => not found
ldconfig -p
        libc.so.6 => /lib/i686/libc.so.6 (0x4002c000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
        libvs_zip.so (libc6) => /home/ori/wiexp/libvs_zip.so
        libvs_xy.so (libc6) => /home/ori/wiexp/libvs_xy.so
        libvs_xl5.so (libc6) => /home/ori/wiexp/libvs_xl5.so
        libvs_w97.so (libc6) => /home/ori/wiexp/libvs_w97.so
        libvs_w6.so (libc6) => /home/ori/wiexp/libvs_w6.so
.....
...... and all my other so that i need

strange.
what can be wrong?
0
 

Author Comment

by:o_helman
ID: 7162440
i solved the problem.
home/ori didnt have access for wrx. !!!!!!!!!!!!

i chmod to 777 and all is working now

thanks guys for your help
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
LVL 15

Expert Comment

by:samri
ID: 7162559
o_helman,

That was intersting.  Sometime a silly mistake can be fatal -- at least it gets me scratching my head for a few days.

Anyway, since you had found your solution, next would be closing this question.  You could drop by Community Support, and request for a deletion, or pts refunded -- since it's quite a good PAQ.  Or, you can award me :)

cheers.

samri
0
 
LVL 15

Expert Comment

by:samri
ID: 7162562
helman,

wait a minute -- I think 777 is very (VERY) dangerous.  Perhaps you might want to try with 755 (owner full access, group and other read-execute).  this should work since the apache process only need to have read (I doubt execute bit is needed!) permission to the libs.

cheers.
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 7167915
Points reduced and placed in PAQ

Computer101
E-E Moderator
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

Suggested Solutions

Title # Comments Views Activity
How to redirect https://www to non-www? 6 75
Virtual host in apache 31 90
phpPgAdmin problem 14 136
Apache / XAMPP  authorisation 10 55
As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

770 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