<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
I have limited access to the webserver.&nbsp; The ISP gave me ssh access so
I can login through putty, but I have no permission to change things
outside of my home directory, or to run commands as root, which I
believe is required for ldconfig.<br>
<br>
Option 1. Not available. I contacted the ISP about adding libraries and
they are not willing to do that.&nbsp; So I have to install the libraries in
my user directory.&nbsp; I had thought that stating the path when compiling
the libraries and mapserver was going to be enough, but apparently not.<br>
<br>
Option 2. This seemed promising, but I can't get it to work.&nbsp; I wasn't
sure where the .htaccess file was supposed to go so I sprinkled copies
around in a bunch of places. I noticed a (blank) .htaccess file in my
public_html directory, so I tried putting the SetEnv command in there.<br>
There is no change when I run ./mapserv -v from cgi-bin, or try to
access <a class="moz-txt-link-freetext" href="http://www.alt2is.com/cgi-bin/mapserv">http://www.alt2is.com/cgi-bin/mapserv</a>? from my browser.<br>
I also put a copy of the .htaccess file in cgi-bin, and a copy at the
top level of my user directory (/home/alttwois), no difference.<br>
<br>
Option 3. Tried this also.&nbsp; No change, which I think means I managed to
get the script to repeat what was going on in option 2, but libgdal is
still not being found.<br>
<br>
Don't Options 2 and 3 depend on there being a file libgdal.so.1
somewhere?&nbsp; I cannot find any such file.<br>
I used the following steps to install the gdal library:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; In CPanel<br>
<ol>
  <li>Download gdal-1.4.2.tar.gz to local disk from <a class="moz-txt-link-freetext" href="http://www.gdal.org/">http://www.gdal.org/</a></li>
  <li>Upload to website (into /home/alttwois/lib)</li>
  <li>Extract the tarball into /home/alttwois/lib<br>
In Putty</li>
  <li>cd lib/gdal*<br>
  </li>
  <li>Run configuration command<br>
./configure --prefix=$HOME/local --without-python</li>
  <li>make </li>
  <li>make install</li>
</ol>
Tara<br>
<br>
Gregor Mosheh wrote:
<blockquote cite="mid:46D11062.3040807@hostgis.com" type="cite">Tara
Athan wrote:
  <br>
  <br>
  <blockquote type="cite">When I put the URL
    <br>
<a class="moz-txt-link-freetext" href="http://www.alt2is.com/cgi-bin/mapserv">http://www.alt2is.com/cgi-bin/mapserv</a>?
    <br>
into my browser I get 500 Server Error
    <br>
  </blockquote>
  <br>
Yup. A code 500 is the general purpose "it crashed!" message. In this
case...
  <br>
  <br>
  <br>
  <blockquote type="cite">./mapserv -v
    <br>
./mapserv: error while loading shared libraries: libgdal.so.1: cannot
open shared object file: No such file or directory
    <br>
  </blockquote>
  <br>
You had mentioned that your installation was under your home directory.
Not surprisingly, your ISP and their webserver desn't have your home
directory listed as a place to look for library files. Presuming that
you're using a Unix-like system...
  <br>
  <br>
Option 1: Install GDAL, Freetype, GD, etc. into the standard places,
eg. /usr and /usr/local
  <br>
Don't forget to run "ldconfig" after installing libraries; it helps.
  <br>
  <br>
Option 1a: Add you installation directories to /etc/ld.so.conf and
re-run "ldconfig"
  <br>
  <br>
Option 2: A htaccess file setting LD_LIBRARY_PATH
  <br>
Create a .htaccess file or add to your webserver configuration this
line:
  <br>
# add your directory to the runtime linker's search path
  <br>
SetEnv LD_LIBRARY_PATH "/home/yourusername/libs"
  <br>
  <br>
Option 3: a wrapper script
  <br>
Rename mapserv to something else, e.g. mapserv.real
  <br>
Write a simple shell script to set the linker path and then exec
mapserv. I think it'd go something like this:
  <br>
&nbsp; #!/bin/sh
  <br>
&nbsp; export LD_LIBRARY_PATH="/home/me/testing/lib"
  <br>
&nbsp; exec /path/to/mapserv.real
  <br>
  <br>
  <br>
I hope that helps. If not, please get back to us with specifics about
your degree of sysadmin access on the server. For instance, can you
install GDAL, et al into their usual places? Do you have permission to
edit the ld.so.conf, or the webserver config?
  <br>
  <br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
My e-mail delivery has been unreliable lately, so I am asking for
return receipts from all my email messages.
OK'ing the return receipt lets me know that my message was delivered.
Thank you.

Tara Athan
Principal, Alternatives to Invasive Species
<a class="moz-txt-link-abbreviated" href="mailto:tara_athan@alt2is.com">tara_athan@alt2is.com</a>
707-485-1198
PO Box 415
Redwood Valley, CA 95470</pre>
</body>
</html>