Oh great ones...
Platform: Sunfire 280R, Solaris 8
Software: Apache 1.3.12
mySQL 3.23.45
perl 5.6.0
When running my query from the command line, like so:
root@comrcu02emsprod:/usr/local/apache/cgi-bin/lookup# ./service_lookup.cgi
I get:
Content-type:text/html<br>
<HTML><HEAED><TITLE>Service to Device Lookup</TITLE>
</HEAD>
<BODY>
Connecting to business_services using u: user, p: name ...
Preparing statement: SELECT device_id, service_id, description, locati
+on_id, managed, chgcontrol, ip FROM service_to_device LEFT JOIN devic
+es ON service_to_device.device_id=devices.name WHERE service_to_devic
+e.device_id='routing'
Executing statement...
Binding columns...
Looping...
routing, compass, M&T Routing
routing, firewall, M&T Routing
routing, groupwise, M&T Routing
routing, imail, M&T Routing
routing, webbusiness, M&T Routing
routing, mandtbankcom, M&T Routing
</BODY>
</HTML>
This is the expected result.
But when I try to run the same cgi from a web browser, I just get:
Connecting to business_services using u: user, p: name ...
In my error_log for httpd, I get:
install_driver(mysql) failed: Can't load '/usr/local/lib/perl5/site_pe
+rl/5.6.0/sun4-solaris/auto/DBD/mysql/mysql.so' for module DBD::mysql:
+ ld.so.1: /usr/bin/perl: fatal: /usr/local/mysql/lib/mysql/libmysqlcl
+ient.so.10: Permission denied at
/usr/local/lib/perl5/5.6.0/sun4-solaris/DynaLoader.pm line 200.
So it looks like I have something messed up in my library. How do I fix this? I verified that I have mysql.so. Is this the module I'm having the problem with?
Thanks,
Paul
edit (broquaint): added <code> tags
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.