Solved

cgi problem with apache

Posted on 2002-07-18
6
315 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

821 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