Solved

cgi problem with apache

Posted on 2002-07-18
6
312 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Website Hosting for Best Worldwide Response Times 6 136
how to configure and install nginx ? 1 428
Problem to go to page 12 81
New OSQA server has a ton of fake users 4 53
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

930 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

12 Experts available now in Live!

Get 1:1 Help Now