Mailing List Archive

Apache can't see the .so that is in path
Hi,



My environment:
Suse Linux 7.1, Kernel: 2.2.18 (i686)
Kylix 1
Apache/1.3.17

The problem:
- If me make a little cgi that runs perfectly ( the cgi is in the cgi-bin
directory)
- If I modify the cgi in Kylix(our programming language) and put up a new
component
(DOA) to access Oracle database, then it stops working

- In the browser the error message is:
Not Found
The requested URL /cgi-bin/doacgi.cgi was not found on this server.
Apache/1.3.17 Server at localhost Port 80

- However in the apache log file I can read:
[Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): Entry
point... [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler():
r->the_request =
[GET /cgi-bin/doacgi.cgi HTTP/1.1]
[Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): r->protocol
=
[HTTP/1.1]
[Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): r->proto_num
=
1001
[Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): r->filename
=
[/usr/local/httpd/cgi-bin/doacgi.cgi]
[Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): r->uri
=
[/cgi-bin/doacgi.cgi]
[Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler():
r->content_type =
[(null)]
[Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): r->handler
=
[cgi-script]
[Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip: This item was NOT
FOUND in
any mod_gzip httpd item record.
[Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip: This item will NOT be
processed.
[Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip: action_flag =
MOD_GZIP_IMAP_DECLINED1
[Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): Exit:
return( rc
= -1 = DECLINED )
[Sun Jan 20 17:13:46 2002] [error] [client 127.0.0.1] script not found
or
unable to stat: /usr/local/httpd/cgi-bin/doacgi.cgi
cgidoa.cgi: error while loading shared libraries: libqtintf.so: cannot
open
shared object file: No such file or directory
[Sun Jan 20 14:35:56 2002] [error] [client 127.0.0.1] Premature end of
script
headers: /usr/local/httpd/cgi-bin/cgidoa.cgi


So I think the libqtintf.so file is the problem.
However this file is in user's home/kylix/bin directory and it is in the
path. And what is more it has the permissions that anybody could make
anything to it.

The cgi is in the cgi-bin directory of the Apache server.
I have tried to copy and/or make soft links of libqtintf.so in different
directories used by Apache with no result.
I' ve read about 100 pages from apache.org and everything seems good in
the httpd.conf.


It seems to me that Apache can't se anything that is in the Path.


Thank you in advance




Zsolt Csillag,
Hungary


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Apache can't see the .so that is in path [ In reply to ]
The important thing here is not $PATH, but $LD_LIBRARY_PATH (since
libqtintf.so is a shared object).

I believe you need to use the SetEnv directive in your httpd.conf so that
your CGI script has it right.

SetEnv LD_LIBRARY_PATH /wherever/your/shared/objects/are

Typically .so's go in directories called 'lib', not bin.

-Andy


On Wed, 23 Jan 2002 19:27:17 +0000
Csillag Zsolt <starsoft@interware.hu> wrote:

> Hi,
>
>
>
> My environment:
> Suse Linux 7.1, Kernel: 2.2.18 (i686)
> Kylix 1
> Apache/1.3.17
>
> The problem:
> - If me make a little cgi that runs perfectly ( the cgi is in the
cgi-bin
> directory)
> - If I modify the cgi in Kylix(our programming language) and put up a
new
> component
> (DOA) to access Oracle database, then it stops working
>
> - In the browser the error message is:
> Not Found
> The requested URL /cgi-bin/doacgi.cgi was not found on this server.
> Apache/1.3.17 Server at localhost Port 80
>
> - However in the apache log file I can read:
> [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): Entry
> point... [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler():
> r->the_request =
> [GET /cgi-bin/doacgi.cgi HTTP/1.1]
> [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): r->protocol
> =
> [HTTP/1.1]
> [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): r->proto_num
> =
> 1001
> [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): r->filename
> =
> [/usr/local/httpd/cgi-bin/doacgi.cgi]
> [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): r->uri
> =
> [/cgi-bin/doacgi.cgi]
> [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler():
> r->content_type =
> [(null)]
> [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): r->handler
> =
> [cgi-script]
> [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip: This item was NOT
> FOUND in
> any mod_gzip httpd item record.
> [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip: This item will NOT be
> processed.
> [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip: action_flag =
> MOD_GZIP_IMAP_DECLINED1
> [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): Exit:
> return( rc
> = -1 = DECLINED )
> [Sun Jan 20 17:13:46 2002] [error] [client 127.0.0.1] script not found
> or
> unable to stat: /usr/local/httpd/cgi-bin/doacgi.cgi
> cgidoa.cgi: error while loading shared libraries: libqtintf.so: cannot
> open
> shared object file: No such file or directory
> [Sun Jan 20 14:35:56 2002] [error] [client 127.0.0.1] Premature end of
> script
> headers: /usr/local/httpd/cgi-bin/cgidoa.cgi
>
>
> So I think the libqtintf.so file is the problem.
> However this file is in user's home/kylix/bin directory and it is in the
> path. And what is more it has the permissions that anybody could make
> anything to it.
>
> The cgi is in the cgi-bin directory of the Apache server.
> I have tried to copy and/or make soft links of i in different
> directories used by Apache with no result.
> I' ve read about 100 pages from apache.org and everything seems good in
> the httpd.conf.
>
>
> It seems to me that Apache can't se anything that is in the Path.
>
>
> Thank you in advance
>
>
>
>
> Zsolt Csillag,
> Hungary
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Apache can't see the .so that is in path [ In reply to ]
Hmm... I just verified it and it works for me.

1. What is the exact line you put in httpd.conf?
2. What is the exact error message it gave you?
3. Does httpd -l show mod_env.c as one of the modules your Apache has?

-Andy


On Wed, 23 Jan 2002 22:56:49 +0000
Csillag Zsolt <starsoft@interware.hu> wrote:

>
> Hi Andy,
>
>
> Thank you for your quck reply.
>
> Your aswer solved 50% of my problem.
>
> Before I wrote my first letter I got this error message both in the
> browser and console mode.
>
> I put the library path in the LD_LIBRARY_PATH as you said and
> now the cgi works correcly but only from console mode.
>
> From web browser I get the same error message.
>
> I tried to write SetEnv LD_LIBRARY_PATH in the
> httpd.conf but when I restarted Apache server it prompted that it could
not
> recognize SetEnv.
>
> So we are now nearer with a step but still not working :-(
>
>
> Thank you
>
> Zsolt Csillag
> Hungary
>
>
> At 11:29 2002.01.23. -0700, you wrote:
> >The important thing here is not $PATH, but $LD_LIBRARY_PATH (since
> >libqtintf.so is a shared object).
> >
> >I believe you need to use the SetEnv directive in your httpd.conf so
that
> >your CGI script has it right.
> >
> >SetEnv LD_LIBRARY_PATH /wherever/your/shared/objects/are
> >
> >Typically .so's go in directories called 'lib', not bin.
> >
> >-Andy
> >
> >
> >On Wed, 23 Jan 2002 19:27:17 +0000
> >Csillag Zsolt <starsoft@interware.hu> wrote:
> >
> > > Hi,
> > >
> > >
> > >
> > > My environment:
> > > Suse Linux 7.1, Kernel: 2.2.18 (i686)
> > > Kylix 1
> > > Apache/1.3.17
> > >
> > > The problem:
> > > - If me make a little cgi that runs perfectly ( the cgi is in the
> >cgi-bin
> > > directory)
> > > - If I modify the cgi in Kylix(our programming language) and put up
a
> >new
> > > component
> > > (DOA) to access Oracle database, then it stops working
> > >
> > > - In the browser the error message is:
> > > Not Found
> > > The requested URL /cgi-bin/doacgi.cgi was not found on this server.
> > > Apache/1.3.17 Server at localhost Port 80
> > >
> > > - However in the apache log file I can read:
> > > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): Entry
> > > point... [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler():
> > > r->the_request =
> > > [GET /cgi-bin/doacgi.cgi HTTP/1.1]
> > > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler():
r->protocol
> > > =
> > > [HTTP/1.1]
> > > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler():
r->proto_num
> > > =
> > > 1001
> > > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler():
r->filename
> > > =
> > > [/usr/local/httpd/cgi-bin/doacgi.cgi]
> > > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): r->uri
> > > =
> > > [/cgi-bin/doacgi.cgi]
> > > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler():
> > > r->content_type =
> > > [(null)]
> > > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler():
r->handler
> > > =
> > > [cgi-script]
> > > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip: This item was NOT
> > > FOUND in
> > > any mod_gzip httpd item record.
> > > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip: This item will NOT
be
> > > processed.
> > > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip: action_flag =
> > > MOD_GZIP_IMAP_DECLINED1
> > > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): Exit:
> > > return( rc
> > > = -1 = DECLINED )
> > > [Sun Jan 20 17:13:46 2002] [error] [client 127.0.0.1] script not
found
> > > or
> > > unable to stat: /usr/local/httpd/cgi-bin/doacgi.cgi
> > > cgidoa.cgi: error while loading shared libraries: libqtintf.so:
cannot
> > > open
> > > shared object file: No such file or directory
> > > [Sun Jan 20 14:35:56 2002] [error] [client 127.0.0.1] Premature end
of
> > > script
> > > headers: /usr/local/httpd/cgi-bin/cgidoa.cgi
> > >
> > >
> > > So I think the libqtintf.so file is the problem.
> > > However this file is in user's home/kylix/bin directory and it is in
the
> > > path. And what is more it has the permissions that anybody could
make
> > > anything to it.
> > >
> > > The cgi is in the cgi-bin directory of the Apache server.
> > > I have tried to copy and/or make soft links of i in different
> > > directories used by Apache with no result.
> > > I' ve read about 100 pages from apache.org and everything seems good
in
> > > the httpd.conf.
> > >
> > >
> > > It seems to me that Apache can't se anything that is in the Path.
> > >
> > >
> > > Thank you in advance
> > >
> > >
> > >
> > >
> > > Zsolt Csillag,
> > > Hungary
> > >
> > >
> > >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > > For additional commands, e-mail: users-help@httpd.apache.org
> > >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >For additional commands, e-mail: users-help@httpd.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Apache can't see the .so that is in path [ In reply to ]
Hi Andy,


Thank you for your quck reply.

Your aswer solved 50% of my problem.

Before I wrote my first letter I got this error message both in the
browser and console mode.

I put the library path in the LD_LIBRARY_PATH as you said and
now the cgi works correcly but only from console mode.

From web browser I get the same error message.

I tried to write SetEnv LD_LIBRARY_PATH in the
httpd.conf but when I restarted Apache server it prompted that it could not
recognize SetEnv.

So we are now nearer with a step but still not working :-(


Thank you

Zsolt Csillag
Hungary


At 11:29 2002.01.23. -0700, you wrote:
>The important thing here is not $PATH, but $LD_LIBRARY_PATH (since
>libqtintf.so is a shared object).
>
>I believe you need to use the SetEnv directive in your httpd.conf so that
>your CGI script has it right.
>
>SetEnv LD_LIBRARY_PATH /wherever/your/shared/objects/are
>
>Typically .so's go in directories called 'lib', not bin.
>
>-Andy
>
>
>On Wed, 23 Jan 2002 19:27:17 +0000
>Csillag Zsolt <starsoft@interware.hu> wrote:
>
> > Hi,
> >
> >
> >
> > My environment:
> > Suse Linux 7.1, Kernel: 2.2.18 (i686)
> > Kylix 1
> > Apache/1.3.17
> >
> > The problem:
> > - If me make a little cgi that runs perfectly ( the cgi is in the
>cgi-bin
> > directory)
> > - If I modify the cgi in Kylix(our programming language) and put up a
>new
> > component
> > (DOA) to access Oracle database, then it stops working
> >
> > - In the browser the error message is:
> > Not Found
> > The requested URL /cgi-bin/doacgi.cgi was not found on this server.
> > Apache/1.3.17 Server at localhost Port 80
> >
> > - However in the apache log file I can read:
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): Entry
> > point... [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler():
> > r->the_request =
> > [GET /cgi-bin/doacgi.cgi HTTP/1.1]
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): r->protocol
> > =
> > [HTTP/1.1]
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): r->proto_num
> > =
> > 1001
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): r->filename
> > =
> > [/usr/local/httpd/cgi-bin/doacgi.cgi]
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): r->uri
> > =
> > [/cgi-bin/doacgi.cgi]
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler():
> > r->content_type =
> > [(null)]
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): r->handler
> > =
> > [cgi-script]
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip: This item was NOT
> > FOUND in
> > any mod_gzip httpd item record.
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip: This item will NOT be
> > processed.
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip: action_flag =
> > MOD_GZIP_IMAP_DECLINED1
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): Exit:
> > return( rc
> > = -1 = DECLINED )
> > [Sun Jan 20 17:13:46 2002] [error] [client 127.0.0.1] script not found
> > or
> > unable to stat: /usr/local/httpd/cgi-bin/doacgi.cgi
> > cgidoa.cgi: error while loading shared libraries: libqtintf.so: cannot
> > open
> > shared object file: No such file or directory
> > [Sun Jan 20 14:35:56 2002] [error] [client 127.0.0.1] Premature end of
> > script
> > headers: /usr/local/httpd/cgi-bin/cgidoa.cgi
> >
> >
> > So I think the libqtintf.so file is the problem.
> > However this file is in user's home/kylix/bin directory and it is in the
> > path. And what is more it has the permissions that anybody could make
> > anything to it.
> >
> > The cgi is in the cgi-bin directory of the Apache server.
> > I have tried to copy and/or make soft links of i in different
> > directories used by Apache with no result.
> > I' ve read about 100 pages from apache.org and everything seems good in
> > the httpd.conf.
> >
> >
> > It seems to me that Apache can't se anything that is in the Path.
> >
> >
> > Thank you in advance
> >
> >
> >
> >
> > Zsolt Csillag,
> > Hungary
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Apache can't see the .so that is in path [ In reply to ]
Hi Andy,


>Hmm... I just verified it and it works for me.
>1. What is the exact line you put in httpd.conf?

-I didn't need to put anything in the httpd.conf because the cgi is put in
the cgi-bin
directory of Apache (that is alredy configured by default)

>2. What is the exact error message it gave you?

-In the browser:

Internal Server Error
The server encountered an internal error or
misconfiguration and was unable to complete
your request.
Please contact the server administrator,
webmaster@localhost and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.
More information about this error may be available
in the server error log.
Apache/1.3.17 Server at localhost Port 80

In the log file:

cgidoa.cgi: error while loading shared libraries: libqtintf.so: cannot open
shared object file: No such file or directory
[Thu Jan 24 21:10:09 2002] [error] [client 127.0.0.1] Premature end of script
headers: /usr/local/httpd/cgi-bin/cgidoa.cgi


>3. Does httpd -l show mod_env.c as one of the modules your Apache has?

- Compiled-in modules
http_core.c
mod_so.c
suexec:enabled;
valid wrapper /usr/sbin/suexec


Thank you

Zsolt Csillag,
Hungary

On Wed, 23 Jan 2002 22:56:49 +0000
Csillag Zsolt <starsoft@interware.hu> wrote:
Hi Andy,

Thank you for your quck reply.
Your aswer solved 50% of my problem.
Before I wrote my first letter I got this error message both in the
browser and console mode.
I put the library path in the LD_LIBRARY_PATH as you said and
now the cgi works correcly but only from console mode.
From web browser I get the same error message.
I tried to write SetEnv LD_LIBRARY_PATH in the
httpd.conf but when I restarted Apache server it prompted that it could
not
recognize SetEnv.
So we are now nearer with a step but still not working :-(

Thank you
Zsolt Csillag
Hungary

At 11:29 2002.01.23. -0700, you wrote:
>The important thing here is not $PATH, but $LD_LIBRARY_PATH (since
>libqtintf.so is a shared object).
>
>I believe you need to use the SetEnv directive in your httpd.conf so
that
>your CGI script has it right.
>
>SetEnv LD_LIBRARY_PATH /wherever/your/shared/objects/are
>
>Typically .so's go in directories called 'lib', not bin.
>
>-Andy
>
>
>On Wed, 23 Jan 2002 19:27:17 +0000
>Csillag Zsolt <starsoft@interware.hu> wrote:
>
> > Hi,
> >
> >
> >
> > My environment:
> > Suse Linux 7.1, Kernel: 2.2.18 (i686)
> > Kylix 1
> > Apache/1.3.17
> >
> > The problem:
> > - If me make a little cgi that runs perfectly ( the cgi is in the
>cgi-bin
> > directory)
> > - If I modify the cgi in Kylix(our programming language) and put up
a
>new
> > component
> > (DOA) to access Oracle database, then it stops working
> >
> > - In the browser the error message is:
> > Not Found
> > The requested URL /cgi-bin/doacgi.cgi was not found on this server.
> > Apache/1.3.17 Server at localhost Port 80
> >
> > - However in the apache log file I can read:
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): Entry
> > point... [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler():
> > r->the_request =
> > [GET /cgi-bin/doacgi.cgi HTTP/1.1]
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler():
r->protocol
> > =
> > [HTTP/1.1]
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler():
r->proto_num
> > =
> > 1001
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler():
r->filename
> > =
> > [/usr/local/httpd/cgi-bin/doacgi.cgi]
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): r->uri
> > =
> > [/cgi-bin/doacgi.cgi]
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler():
> > r->content_type =
> > [(null)]
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler():
r->handler
> > =
> > [cgi-script]
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip: This item was NOT
> > FOUND in
> > any mod_gzip httpd item record.
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip: This item will NOT
be
> > processed.
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip: action_flag =
> > MOD_GZIP_IMAP_DECLINED1
> > [Sun Jan 20 17:13:46 2002] [debug] (0): mod_gzip_handler(): Exit:
> > > return( rc
> > = -1 = DECLINED )
> > [Sun Jan 20 17:13:46 2002] [error] [client 127.0.0.1] script not
found
> > or
> > unable to stat: /usr/local/httpd/cgi-bin/doacgi.cgi
> > cgidoa.cgi: error while loading shared libraries: libqtintf.so:
cannot
> > open
> > shared object file: No such file or directory
> > [Sun Jan 20 14:35:56 2002] [error] [client 127.0.0.1] Premature end
of
> > script
> > headers: /usr/local/httpd/cgi-bin/cgidoa.cgi
> >
> >
> > So I think the libqtintf.so file is the problem.
> > However this file is in user's home/kylix/bin directory and it is in
the
> > path. And what is more it has the permissions that anybody could
make
> > anything to it.
> >
> > The cgi is in the cgi-bin directory of the Apache server.
> > I have tried to copy and/or make soft links of i in different
> > directories used by Apache with no result.
> > I' ve read about 100 pages from apache.org and everything seems good
in
> > the httpd.conf.
> >
> >
> > It seems to me that Apache can't se anything that is in the Path.
> >
> >
> > Thank you in advance
> >
> >
> >
> >
> > Zsolt Csillag,
> > Hungary
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


--


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Apache can't see the .so that is in path [ In reply to ]
#3 shows you don't have mod_env in your httpd, which is why SetEnv didn't
work. Since your httpd has mod_so, it can load modules at run-time. Add:

LoadModule env_module libexec/mod_env.so

to your httpd.conf and try again (with the SetEnv line from before). Make
sure mod_env.so is really in the libexec directory of your Apache. If not
you'll need to compile it.

The reason for this is, cgidoa.cgi is trying to load a shared library
called 'libqtintf.so' every time you want to run it. It needs to have the
environment variable $LD_LIBRARY_PATH set properly in order to find that
library.

If you want to go with the /home/kylix thing, make a /home/kylix/lib and
put libqtintf.so in there. Then:

SetEnv LD_LIBRARY_PATH /home/kylix/lib

-Andy


On Thu, 24 Jan 2002 21:49:26 +0000
Csillag Zsolt <starsoft@interware.hu> wrote:

>
> Hi Andy,
>
>
> >Hmm... I just verified it and it works for me.
> >1. What is the exact line you put in httpd.conf?
>
> -I didn't need to put anything in the httpd.conf because the cgi is put
in
> the cgi-bin
> directory of Apache (that is alredy configured by default)
>
> >2. What is the exact error message it gave you?
>
> -In the browser:
>
> Internal Server Error
> The server encountered an internal error or
> misconfiguration and was unable to complete
> your request.
> Please contact the server administrator,
> webmaster@localhost and inform them of the time the error occurred,
> and anything you might have done that may have
> caused the error.
> More information about this error may be available
> in the server error log.
> Apache/1.3.17 Server at localhost Port 80
>
> In the log file:
>
> cgidoa.cgi: error while loading shared libraries: libqtintf.so: cannot
open
> shared object file: No such file or directory
> [Thu Jan 24 21:10:09 2002] [error] [client 127.0.0.1] Premature end of
script
> headers: /usr/local/httpd/cgi-bin/cgidoa.cgi
>
>
> >3. Does httpd -l show mod_env.c as one of the modules your Apache has?
>
> - Compiled-in modules
> http_core.c
> mod_so.c
> suexec:enabled;
> valid wrapper /usr/sbin/suexec


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Apache can't see the .so that is in path [ In reply to ]
Hi,

Now I have done everything with Apache server:



- The libqtintf.so is in the PATH-ban and LD_LIBRARY_PATH
- everybody has FULL access to it
- several soft links point to it from different Apache folders

- I have put in the httpd.conf the SetEnv command with the, LD_LIBRARY_PATH.
I have tested it with a Perl cgi that writes every environment variable
on the screen
and the LD_LIBRARY_PATH was there

- I tried to run the Apache server with different user


I don't know what to do. If you want I can send you my httpd.conf and the
.so file
to your private mail.
I'm desperate since I have to finish this job soon and I still couldn't
start it because this problem.


Thank you very much


Zsolt Csillag,
Hungary



At 06:46 2002.01.25. -0700, you wrote:
>#3 shows you don't have mod_env in your httpd, which is why SetEnv didn't
>work. Since your httpd has mod_so, it can load modules at run-time. Add:
>
>LoadModule env_module libexec/mod_env.so
>
>to your httpd.conf and try again (with the SetEnv line from before). Make
>sure mod_env.so is really in the libexec directory of your Apache. If not
>you'll need to compile it.
>
>The reason for this is, cgidoa.cgi is trying to load a shared library
>called 'libqtintf.so' every time you want to run it. It needs to have the
>environment variable $LD_LIBRARY_PATH set properly in order to find that
>library.
>
>If you want to go with the /home/kylix thing, make a /home/kylix/lib and
>put libqtintf.so in there. Then:
>
>SetEnv LD_LIBRARY_PATH /home/kylix/lib
>
>-Andy
>
>
>On Thu, 24 Jan 2002 21:49:26 +0000
>Csillag Zsolt <starsoft@interware.hu> wrote:
>
> >
> > Hi Andy,
> >
> >
> > >Hmm... I just verified it and it works for me.
> > >1. What is the exact line you put in httpd.conf?
> >
> > -I didn't need to put anything in the httpd.conf because the cgi is put
>in
> > the cgi-bin
> > directory of Apache (that is alredy configured by default)
> >
> > >2. What is the exact error message it gave you?
> >
> > -In the browser:
> >
> > Internal Server Error
> > The server encountered an internal error or
> > misconfiguration and was unable to complete
> > your request.
> > Please contact the server administrator,
> > webmaster@localhost and inform them of the time the error occurred,
> > and anything you might have done that may have
> > caused the error.
> > More information about this error may be available
> > in the server error log.
> > Apache/1.3.17 Server at localhost Port 80
> >
> > In the log file:
> >
> > cgidoa.cgi: error while loading shared libraries: libqtintf.so: cannot
>open
> > shared object file: No such file or directory
> > [Thu Jan 24 21:10:09 2002] [error] [client 127.0.0.1] Premature end of
>script
> > headers: /usr/local/httpd/cgi-bin/cgidoa.cgi
> >
> >
> > >3. Does httpd -l show mod_env.c as one of the modules your Apache has?
> >
> > - Compiled-in modules
> > http_core.c
> > mod_so.c
> > suexec:enabled;
> > valid wrapper /usr/sbin/suexec
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org