You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ezra <ez...@acedsl.com> on 2003/04/17 08:22:17 UTC
[users@httpd] start up errors usingmod_auth_pgsql-2.0.1
Hello all:
I installed mod_auth_pgsql-2.0.1 as a DSO
successfuly, but when I try to start apache(apachectl -k start) I
receive the error:
Syntax error on line 265 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/apache/mod_auth_pgsql.so into server: libpq.so.3:
cannot open shared object file: No such file or directory
I think my Makefile is not correct for the linux distro I'm using(RedHat
7.2)
My Makefile is as follows:
APACHE2_HOME=/usr/local/apache2
PGSQL_LIB=/usr/local/pgsql/lib
PGSQL_INCLUDE=/usr/local/pgsql/include
shared:
${APACHE2_HOME}/bin/apxs -i -a -c -I ${PGSQL_INCLUDE} -L
${PGSQL_LIB} -lpq mod_auth_pgsql.c
indent:
indent -kr -ts4 mod_auth_pgsql.c
clean:
rm -rf .libs/ *.la *.o *.lo *.slo *~
NOTE: Apache config file is in:
/etc/httpd/conf/httpd.conf
Apache libs are located:
/usr/lib/apache/
Apache source directory:
/usr/httpd-2.0.45
PostGresql installed using default directories
/usr/local/pgsql /usr/local/pgsql/lib /usr/local/pgsql/include
The file libpq.so.3 does exists and is located in /usr/local/pgsql/lib
I can't think of anything else right now. If you need more info let me
know.
Thank You
Ezra Taylor
---------------------------------------------------------------------
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
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] start up errors usingmod_auth_pgsql-2.0.1
Posted by Ezra <ez...@acedsl.com>.
Hello all:
The problem has been solved. The solution is as follows: Try adding
/usr/local/pgsql/lib to /etc/ld.so.conf and then running ldconfig
Now reasoning behind this is: Well, the /etc/ld.so.conf file maintains a
list of default library paths, so apache was looking for the modules in
the list that was in there. Running ldconfig just updated the list of
directories so that the system knew to check
that directory too.
One of the Gurus(I don't think it is approprite I mention his name) from
NYLUG helped me with this. I thought I'd share it with all of you.
Thank You
Ezra Taylor
Ezra wrote:
> Hello all:
> I installed mod_auth_pgsql-2.0.1 as a DSO
> successfuly, but when I try to start apache(apachectl -k start) I
> receive the error:
>
> Syntax error on line 265 of /etc/httpd/conf/httpd.conf:
> Cannot load /usr/lib/apache/mod_auth_pgsql.so into server: libpq.so.3:
> cannot open shared object file: No such file or directory
>
> I think my Makefile is not correct for the linux distro I'm using(RedHat
> 7.2)
>
> My Makefile is as follows:
>
> APACHE2_HOME=/usr/local/apache2
> PGSQL_LIB=/usr/local/pgsql/lib
> PGSQL_INCLUDE=/usr/local/pgsql/include
>
> shared:
> ${APACHE2_HOME}/bin/apxs -i -a -c -I ${PGSQL_INCLUDE} -L
> ${PGSQL_LIB} -lpq mod_auth_pgsql.c
>
> indent:
> indent -kr -ts4 mod_auth_pgsql.c
>
> clean:
> rm -rf .libs/ *.la *.o *.lo *.slo *~
>
>
>
> NOTE: Apache config file is in:
> /etc/httpd/conf/httpd.conf
> Apache libs are located:
> /usr/lib/apache/
> Apache source directory:
> /usr/httpd-2.0.45
> PostGresql installed using default directories
> /usr/local/pgsql /usr/local/pgsql/lib /usr/local/pgsql/include
>
> The file libpq.so.3 does exists and is located in /usr/local/pgsql/lib
>
>
>
> I can't think of anything else right now. If you need more info let me
> know.
>
>
> Thank You
> Ezra Taylor
>
>
> ---------------------------------------------------------------------
> 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
> " from the digest: users-digest-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
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] start up errors usingmod_auth_pgsql-2.0.1
Posted by Ezra <ez...@acedsl.com>.
I'm using PostGresql 7.3.2
Ezra wrote:
> Hello all:
> I installed mod_auth_pgsql-2.0.1 as a DSO
> successfuly, but when I try to start apache(apachectl -k start) I
> receive the error:
>
> Syntax error on line 265 of /etc/httpd/conf/httpd.conf:
> Cannot load /usr/lib/apache/mod_auth_pgsql.so into server: libpq.so.3:
> cannot open shared object file: No such file or directory
>
> I think my Makefile is not correct for the linux distro I'm using(RedHat
> 7.2)
>
> My Makefile is as follows:
>
> APACHE2_HOME=/usr/local/apache2
> PGSQL_LIB=/usr/local/pgsql/lib
> PGSQL_INCLUDE=/usr/local/pgsql/include
>
> shared:
> ${APACHE2_HOME}/bin/apxs -i -a -c -I ${PGSQL_INCLUDE} -L
> ${PGSQL_LIB} -lpq mod_auth_pgsql.c
>
> indent:
> indent -kr -ts4 mod_auth_pgsql.c
>
> clean:
> rm -rf .libs/ *.la *.o *.lo *.slo *~
>
>
>
> NOTE: Apache config file is in:
> /etc/httpd/conf/httpd.conf
> Apache libs are located:
> /usr/lib/apache/
> Apache source directory:
> /usr/httpd-2.0.45
> PostGresql installed using default directories
> /usr/local/pgsql /usr/local/pgsql/lib /usr/local/pgsql/include
>
> The file libpq.so.3 does exists and is located in /usr/local/pgsql/lib
>
>
>
> I can't think of anything else right now. If you need more info let me
> know.
>
>
> Thank You
> Ezra Taylor
>
>
> ---------------------------------------------------------------------
> 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
> " from the digest: users-digest-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
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org