You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Azhar Ali Shah Syed <aa...@hotmail.com> on 2008/01/15 12:02:11 UTC

[users@httpd] Problem in starting Apache httpd 2.2.6

Hello All,

I have installed httpd 2.2.6 with PHP 5.2.5 and PostgreSQL 8.2.6 on my CentOS 4.5 machine. When trying to start apache server with apachectl command gives this message:

apachectl: Configuration syntax error, will not run "restart":
Syntax error on line 6 of /etc/httpd/conf.d/auth_pgsql.conf:
Cannot load /etc/httpd/modules/mod_auth_pgsql.so into server: libpq.so.3: cannot open shared object file: No such file or directory

I have browsed the web but din't find sth. 
Any quick help (hint) will highly be appreciated.

Azhar








_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
---------------------------------------------------------------------
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] Problem in starting Apache httpd 2.2.6

Posted by Graeme Fowler <gr...@graemef.net>.
On Wed, 2008-01-16 at 10:55 +0000, Azhar Ali Shah Syed wrote: 
> Thanks for your help. I did a locally compiled installation but might have missed some configuration parameters.

It sounds as though you fed Apache all the right paths at compile time,
or mod_auth_pgsql wouldn't have compiled.

I'm hazarding a guess here that the path to the PostgreSQL libraries
isn't listed in /etc/ld.so.conf (or a file in /etc/ld.so.d/, depending
on how your distro does it).

If not, simply add the path to the library directory to the right file
and then re-run ldconfig.

And yes, before anyone else mentions it, this isn't anything to do with
Apache per se - it's a basic sysadmin task :)

All that said: if you're using PhpPgAdmin, then it's PHP that needs to
speak to PostgreSQL, not Apache. So you could probably comment the
module out, or move the relevant .conf file out of the way, and start
Apache happily.

Graeme


---------------------------------------------------------------------
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] Problem in starting Apache httpd 2.2.6

Posted by Azhar Ali Shah Syed <aa...@hotmail.com>.
> Either one of:
> 
> up2date -i postgresql-libs
> or
> yum install postgresql-libs
> 
> should see you right. If they don't, the question becomes "where did you
> install Apache from? A CentOS repository, locally compiled, something
> else?"

Thanks for your help. I did a locally compiled installation but might have missed some configuration parameters. I need Apache to be conntected to PostgreSQL so that I can use PhpPgAdmin web interface for PostgreSQL. I had searched the web but was not able to get any useful installation guide for this case. Meanwile, I am also thinking to upgrade CentOS-4 to CentOS-5 which has pre-installed latest versions of PostgreSQL, PHP and Apache. Are there any other alternatives?

Cheers
Azhar 
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
---------------------------------------------------------------------
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] Problem in starting Apache httpd 2.2.6

Posted by Graeme Fowler <gr...@graemef.net>.
On Tue, 2008-01-15 at 11:02 +0000, Azhar Ali Shah Syed wrote:
> I have installed httpd 2.2.6 with PHP 5.2.5 and PostgreSQL 8.2.6 on my CentOS 4.5 machine. When trying to start apache server with apachectl command gives this message:
> 
> apachectl: Configuration syntax error, will not run "restart":
> Syntax error on line 6 of /etc/httpd/conf.d/auth_pgsql.conf:
> Cannot load /etc/httpd/modules/mod_auth_pgsql.so into server: libpq.so.3: cannot open shared object file: No such file or directory

Either one of:

up2date -i postgresql-libs
or
yum install postgresql-libs

should see you right. If they don't, the question becomes "where did you
install Apache from? A CentOS repository, locally compiled, something
else?"

What's happening is that the mod_auth_pgsql module is linked against a
library you don't have installed.

Graeme


---------------------------------------------------------------------
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