• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 337
  • Last Modified:

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?
0
rhdyes
Asked:
rhdyes
  • 4
  • 4
1 Solution
 
kblack05Commented:
post the output of these commands please?

rpm -qa | grep -i postg

rpm -qa | grep -i libpg

Thanks
0
 
rhdyesAuthor Commented:
[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]#
0
 
rhdyesAuthor Commented:
Sorry I typed libpqg when it should have been libpq
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
kblack05Commented:
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.
0
 
rhdyesAuthor Commented:
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
0
 
kblack05Commented:
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.
0
 
rhdyesAuthor Commented:
Maybe I caused it when I did the system install. I don't want SE on anyway. how do you turn it off?
0
 
kblack05Commented:
Add selinux=0 to your kernel command line.

http://fedora.redhat.com/docs/selinux-faq-fc3/index.html#id2825880

Regards~
~K Black~
If Linux were my God, my religion would be Slackware
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now