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

x
?
Solved

cgi problem with apache

Posted on 2002-07-18
6
Medium Priority
?
320 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
[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
  • 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
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

719 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