Link to home
Start Free TrialLog in
Avatar of rhdyes
rhdyesFlag for United States of America

asked on

Install php 5.0.4 apache 2.0.52 and postgrsql 8.1.3 on Centos 4.2

I am trying to get the above combination to work togeather.  I have load all the rpm's but when I bring up apache, it wants to use the library for postgresql 7.3.4 which the original centos came with.  If I move the library and leave the libpq.so.4 which is for postgresql 8.1.3, it won't load.  Any ideas out there?
Avatar of Kelly Black
Kelly Black
Flag of United States of America image

post the output of these commands please?

rpm -qa | grep -i postg

rpm -qa | grep -i libpg

Thanks
Avatar of rhdyes

ASKER

[root@localhost ~]# rpm -qa |grep -i postgr
postgresql-docs-8.1.3-1PGDG
postgresql-libs-8.1.3-1PGDG
postgresql-server-8.1.3-1PGDG
postgresql-test-8.1.3-1PGDG
qt-PostgreSQL-3.3.3-9.3
postgresql-contrib-8.1.3-1PGDG
postgresql-pl-8.1.3-1PGDG
postgresql-devel-8.1.3-1PGDG
postgresql-python-8.1.3-1PGDG
postgresql-libs-7.4.11-1PGDG
freeradius-postgresql-1.0.1-3.RHEL4
postgresql-8.1.3-1PGDG
postgresql-tcl-8.1.3-1PGDG
postgresql-jdbc-8.1.3-1PGDG

The libpg.so.4 is installed. This is a list of /usr/lib.

[root@localhost lib]# cd /usr/lib
[root@localhost lib]# ls libpq*
libpq.a  libpq.so  libpq.so.3  libpq.so.3.1  libpq.so.4  libpq.so.4.1
[root@localhost lib]#
Avatar of rhdyes

ASKER

Sorry I typed libpqg when it should have been libpq
Can you please also post the error message you get when it fails to load?

If you need to hit alt+f2 or f3 and log in on another console, then type 'tail -f /var/log/messages' and watch it as you load the postgres in another window.
Avatar of rhdyes

ASKER

These are messages from starting postgresql and apache

May 24 01:26:18 localhost postgresql: Starting postgresql service:  succeeded
May 24 01:26:47 localhost httpd: httpd shutdown succeeded
May 24 01:26:52 localhost httpd: httpd startup succeeded
May 24 01:26:52 localhost kernel: audit(1148448412.287:18): avc:  denied  { write } for  pid=12484 comm="httpd" name=".index" dev=dm-0 ino=9357369 scontext=root:system_r:httpd_t tcontext=root:object_r:usr_t tclass=file
Looks to me like you are up against an SELinux security engine failure.

restorecon /dev/log

Should fix it. But how it happened seems more critical.
Avatar of rhdyes

ASKER

Maybe I caused it when I did the system install. I don't want SE on anyway. how do you turn it off?
ASKER CERTIFIED SOLUTION
Avatar of Kelly Black
Kelly Black
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial