Koozali.org: home of the SME Server

Need help installing a web app

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Need help installing a web app
« Reply #15 on: May 27, 2007, 03:41:38 PM »
There is a problem with upgrading from pg7.4.17 to pg8 with  php-common
Quote

yum --enablerepo=centosplus install postgresql postgresql-contrib postgresql-devel postgresql-docs postgresql-pl postgresql-python postgresql-test


Quote

Transaction Check Error:   file /etc/php.ini from install of php-common-5.1.6-3.el4s1.5 conflicts with file from package php-4.3.9-3.22.5


So I renamed /etc/php.ini -> .old and did the upgrading. Then I restored php.ini

After rebooting the serveur, php seams to work but sql-ledger is broken.
Quote
could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Sophie from Montréal

Offline wjhobbs

  • *****
  • 171
  • +0/-0
    • http://www.chryxus.ca
Need help installing a web app
« Reply #16 on: May 27, 2007, 04:55:21 PM »
I'm not sure.

Could you check to see which repository centosplus is pointing to. SME7 is based on Centos4 but Centos recently made Centos5 available -- which includes php5. SME7 is only at php4. It is possible that your yum repo for centosplus is pointing at the wrong repository.

db yum_repositories show | more

should show what repositories are specified. The centosplus repo should be pointing to .../centos/4/centosplus/...

John
...

Offline wjhobbs

  • *****
  • 171
  • +0/-0
    • http://www.chryxus.ca
Need help installing a web app
« Reply #17 on: May 27, 2007, 05:03:08 PM »
Quote from: "soprom"
I would very much like to know how you installed LSMB 1.1.12 !

I put the how-to here http://forums.contribs.org/index.php?topic=37181.0

John
...

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Need help installing a web app
« Reply #18 on: May 27, 2007, 05:06:13 PM »
It appears that databases are to be upgraded!

Here's what I did to make sql-ledger work again:

Before upgrading postgres, I had a dump of all databases (pg_dump -c -F p -U postgres <database>).
Stop postgres
yum install as above

Code: [Select]

UPGRADE TO 8:
=============

mv /var/lib/pgsql/data /var/lib/pgsql/data7.4
su postgres
initdb -D /var/lib/pgsql/data
exit

/etc/init.d/postgresql start
mv /home/e-smith/files/ibays/../databases/pg_*.* /var/lib/pgsql/backups

su postgres
cd /var/lib/pgsql/data
createuser -d -P sql-ledger
createuser -d -P ledgersmb
createdb ledgersmb
createdb <databases>
createlang plpgsql template1
exit

psql <databases> < backups/pg_<databases>


Sql-ledger is now working!
Ouch!!
Sophie from Montréal

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Need help installing a web app
« Reply #19 on: May 27, 2007, 05:20:34 PM »
pgAdmin is not working anymore...
pgsql.so is not loading.
I don't want to upgrade to php5 because SME7 will break on the next update.
Sophie from Montréal

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Need help installing a web app
« Reply #20 on: May 27, 2007, 09:15:26 PM »
php is having problems...
Quote
Unable to load dynamic library '/usr/lib/php4/pgsql.so'
Unable to load dynamic library '/usr/lib/php4/pdo.so'
Unable to load dynamic library '/usr/lib/php4/pdo_pgsql.so'
Unable to load dynamic library '/usr/lib/php4/pdo_sqlite.so'
Unable to load dynamic library '/usr/lib/php4/pgsql.so'

I copied files in modules folder to php4 folder but nothing does it.
From a search, I see that this means php5 is required.
How can I roll back to postgresql 7 ?

Help !
Sophie from Montréal

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Need help installing a web app
« Reply #21 on: May 27, 2007, 11:53:07 PM »
John,
Thanks for your howto. I'm trying it.
Sophie from Montréal