rhdyes
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?
ASKER
[root@localhost ~]# rpm -qa |grep -i postgr
postgresql-docs-8.1.3-1PGD G
postgresql-libs-8.1.3-1PGD G
postgresql-server-8.1.3-1P GDG
postgresql-test-8.1.3-1PGD G
qt-PostgreSQL-3.3.3-9.3
postgresql-contrib-8.1.3-1 PGDG
postgresql-pl-8.1.3-1PGDG
postgresql-devel-8.1.3-1PG DG
postgresql-python-8.1.3-1P GDG
postgresql-libs-7.4.11-1PG DG
freeradius-postgresql-1.0. 1-3.RHEL4
postgresql-8.1.3-1PGDG
postgresql-tcl-8.1.3-1PGDG
postgresql-jdbc-8.1.3-1PGD G
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]#
postgresql-docs-8.1.3-1PGD
postgresql-libs-8.1.3-1PGD
postgresql-server-8.1.3-1P
postgresql-test-8.1.3-1PGD
qt-PostgreSQL-3.3.3-9.3
postgresql-contrib-8.1.3-1
postgresql-pl-8.1.3-1PGDG
postgresql-devel-8.1.3-1PG
postgresql-python-8.1.3-1P
postgresql-libs-7.4.11-1PG
freeradius-postgresql-1.0.
postgresql-8.1.3-1PGDG
postgresql-tcl-8.1.3-1PGDG
postgresql-jdbc-8.1.3-1PGD
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]#
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.
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.
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:htt pd_t tcontext=root:object_r:usr _t tclass=file
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:htt
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.
restorecon /dev/log
Should fix it. But how it happened seems more critical.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
rpm -qa | grep -i postg
rpm -qa | grep -i libpg
Thanks