The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Error install Postgresql

Discussion in 'General Discussion' started by veredito, Dec 21, 2007.

  1. veredito

    veredito Registered

    Joined:
    Dec 21, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    The postgresql not start on my server. Use REDHAT Enterprise 4, I tried to install the command:

    /scripts /installpostgres

    But I returned the following error:


    [root@s2 backups]# /scripts/installpostgres
    This script will install Postgres 7.3.x or later
    If you have an older version installed you wil need to
    Dump your databases to a file and then restore them
    after the install as 7.3.x is not backwards compatible.
    If you do not have any databases, you can just run:
    mv /var/lib/pgsql /var/lib/pgsql.old
    /sbin/service postgresql stop
    /sbin/service postgresql start
    to force creating a 7.3.x style setup. Do not do this if
    you have databases that you wish to keep!

    Are you sure you wish to proceed? y

    Fetching Obsoletes list for channel: rhel-i386-es-4...

    Fetching rpm headers...

    Name Version Rel
    ----------------------------------------------------------


    The following packages you requested were not found:
    rh-postgresql
    rh-postgresql-devel
    rh-postgresql-libs
    rh-postgresql-server

    The following packages you requested are already updated:
    postgresql-libs
    postgresql-server
    postgresql
    postgresql-devel
    Stopping postgresql service: [FAILED]
    postmaster: no process killed
    postmaster: no process killed
    Starting postgresql service: [FAILED]
    You should now configure postgresql from WHM!
    You should now configure postgresql from WHM!
    You should now configure postgresql from WHM!
    You should now configure postgresql from WHM!


    Someone would have any solution?

    Thanks
     
  2. javitox

    javitox Member

    Joined:
    Dec 17, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    mm

    try to:


    /scripts/easyapache

    tun it in advance mode


    enable the option postgresql , that script will install it correctly
     
  3. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bucharest
    Same problem. I manage to start postgres by re-creating it's data directory.
    If there is no database on server, you can create the data directory in this way:

    Code:
    rm -rf /var/lib/pgsql/data/
    su - postgres
    initdb /var/lib/pgsql/data/
    logout
    service postgresql restart
    Don't try this if you already have postgres databases on server!
     
Loading...

Share This Page