Solved

cgi problem with apache

Posted on 2002-07-18
6
309 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
LVL 15

Expert Comment

by:samri
Comment Utility
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
Comment Utility
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
Comment Utility
Points reduced and placed in PAQ

Computer101
E-E Moderator
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 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