Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old July 7th, 2001, 12:32 AM
dave_0 dave_0 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 5 dave_0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
cgi and perl script problems

When trying to run a perl or cgi script, i get a 500 Internal Server Error. This is server wide, and doesn't just happen in one directory. I checked the log file as the error suggested, and i see

/usr/libexec/ld-elf.so.1: Shared object "libiconv.so.1" not found

libiconv.so.1 is in my /usr/local/lib directory, so i imagine some link went weird. I really can't think of anything that would do this. The machine was running just fine a few days ago
thanks for the help
-Dave

Reply With Quote
  #2  
Old July 7th, 2001, 06:29 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Apache 500 error probably has nothing to do with iconv. Make sure the directory paths to your script is searchable by the user Apache runs as (Read + Execute = Searchable). Then your script itself needs to be executable.
500 error can be all sort of misconfiguration. You should start out with a hello world script to ensure it wasn't your poor coding problem. Keep in mind, you can't run CGI scripts other than cgi-bin directory (ScriptAlias) by default. You need to enable Options ExecCGI on top of setting appropriate permission.

>> libiconv.so.1 is in my /usr/local/lib directory

Then run ldconfig -m /usr/local/lib or reinstall iconv or even version 2.0 of it.

Reply With Quote
  #3  
Old July 7th, 2001, 02:57 PM
dave_0 dave_0 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 5 dave_0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Its not a misconfiguration. Everything had been working fine for about three months now. All the cgi scripts have run before on the same system with the same configuration, up until last night. I install the iconv library again to no avail. I even redid apache and reinstalled perl. ldconfig -m /usr/local/lib didn't fix it. I'm very much stumped right now. any other help or comments would be greatly appreciated.
thanks
-Dave

Reply With Quote
  #4  
Old July 7th, 2001, 03:00 PM
dave_0 dave_0 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 5 dave_0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I just noticed something. THe error has changed, now it says
/usr/libexec/ld-elf.so.1: Shared object "libiconv.so.2" not found
so it found the new shared object, but is unable to use it?
I'm confused =)
-Dave

Reply With Quote
  #5  
Old July 8th, 2001, 04:40 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Everything has been working fine in the past doesn't necessarily mean it will work forever. Sometime things just break unexpectedly, could be hardware failure or could be all sort of things or even you have been hacked.

iconv is a library used by other applications for converting charsets. If you insist it was the cause of your 500 CGI problems, start here -> http://httpd.apache.org/docs/mod/mod_mime.html and see what it's all about.

BTW, why you needed iconv anyway? Why can't you just uninstall it or reinstall it and read the README file carefully? What OS are you running? Why can't you install it from RPM or follow its install path accordingly? Are you sure /usr/local was the appropriate PREFIX for it to install to?

Reply With Quote
  #6  
Old July 8th, 2001, 01:39 PM
dave_0 dave_0 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 5 dave_0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thats the thing, i did reinstall the iconv library, and it did nothing. I'll try recompiling apache again with mod_mime.
Thanks
still confused and frustrated :-)
-Dave

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > cgi and perl script problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway