Installing OIO 1.1.0 in Ubuntu Linux – Breezy.

Installing zope on ubuntu took some time.

To do it with debs: Apt-get the following stuff – can use synaptic (system-administration-synaptic package manager):

  • build-essential
  • python2.3 and python2.3-dev
  • python2.3-xml
  • python2.3-imaging
  • postgresql server and client -use 8.0 version
  • postgresql common
  • postgresql-server-dev
  • libpq-dev
  • zope2.7-psycopgda
  • zope-parsedxml

parsedxml package may be downloaded and installed by simply unpacking it in the usr/lib/zope2.7/lib/python/Products directory

zope-parsedxml http://www.infrae.com/download

as superuser – sudo su
Create a zopeinstance for yourself.

As su
/usr/lib/zope2.7/bin/mkzopeinstace.py

Give the directory – /home/yourname/oioinstance give the username and password

start the instance
/home/yourname/oioinstance/bin/zopectl fg Everything OK? Ctrl-C to shutdown

ZpsycopgDA in Ubuntu is in /usr/share/zope/Products

then from my INSTANCE_HOME of /home/yourname/oioinstance/Products as sudo

  • sudo ln -s /usr/share/zope/Products/ParsedXML

Start zope and see if these products are available in ZMI

look at
/home/yournamel/oioinstance/etc
There is a zope.conf file.

Edit zope.conf

Look at this part
%define INSTANCE_NAME zope2.7instance
%define INSTANCE /home/yournamel/zope2.7instance %define ZOPE_NAME zope2.7
%define ZOPE /usr/lib/zope2.7
%define ZOPE_USER zope
%define HTTPPORT 9673

ZOPE_USER has to be postgres.

%define ZOPE_USER postgres
chown -R postgres:postgres /home/yourname/oioinstance and chown -R postgres:postgres var/log/zope2.7/oioinstance

start zope
sudo su postgres

/home/yourname/oioinstance/bin/ zopectl fg

log into the ZMI by opening the browser and localhost:9673/manage
Give the userid admin and the password you used, originally. Add a manager user for your use.

PostgreSQL

Postgresql 8.0 in Ubuntu can run at startup automatically.
To control postgresql via a GUI interface download pgadmin3 via apt or synaptic and start it by typing pgadmin3 at the prompt in a terminal.Postgresql commands are in

/usr/lib/postgresql/8.0/bin

To initialize the database and run the postmaster server do this

sudo su postgres (give you Ubuntu password when asked)

cd /usr/lib/postgresql/8.0/bin

./initdb -D /var/lib/postgresql/data

there will be some happy messages of success!!

From now on to start the postmaster
as postgres
$ cd /usr/lib/postgresql/8.0/bin/
$ ./postmaster -D /var/lib/postgresql/data

You get

LOG: database system was shut down at 2006-04-07 07:56:38 MDT
LOG: checkpoint record is at 0/B68CB8
LOG: redo record is at 0/B68CB8; undo record is at 0/0; shutdown TRUE
LOG: next transaction ID: 1368; next OID: 17451
LOG: database system is ready
_
Note:
If you want to close it down do Ctrl-C at the terminal
_

Open another terminal, su to postgres user
cd space enter to go to the home directory of postgres
createdb local_text
createdb publicdb

Or just start pgadmin3
add server from file menu or right clickl on the “servers”
address= localhost
description = pgserver
port=5432
inital db=template1
username=postgres
need password – clicked
password=type in password with great care :-)

when it appears right click and click connect. Enter password when asked.
Now right click on it and add the databases
local_text
publicdb

Now add OIO

Zope and postgresql are installed and both servers running.

Zope has to be started by postgres user.

Put the oio.zip in the import directory
(/usr/lib/zope2.7/import)
unzip
sudo su
cd to the import directory
chown -R postgres:postgres OIO
cd OIO
./install

when asked for the zope directory give
/usr/lib/zope2.7
when asked for the instance give
/home/yourname/oioinstance

login to ZMI, open the acl_user folderadd user oio role as manager with password

close browser

run browser again and login to ZMI
In the root folder import tab and import oio.zexp -will say done!
(Sometimes in certain versions of zope In control panel Products import tab and import oio.zexp -will say done! Now get to the root directory and add an oio instance id=oio}

Refresh browser
click OIO folder in the left panel and get to Properties tab
Set
my_database to publicdb

auto_his_assignments – change to no ( it is set as “yes” by default )

internal_base_URL
Correct the URL of the base_URL (at the bottom part of web form) as follows
http://localhost:9673/OIO/
internal_form_URL
http://localhost:9673/OIO/patients/forms/library/
Set the external base and forms URL to the same as above

Set the reports URL to
http://localhost:9673/OIO/wrap_interface/my_reports/
transaction_URL to
http://localhost:9673/OIO/
save changes NOW!

Refresh browser
click OIO folder in the left panel and get to
OIO/Local_text/initialize
click on define_initial_tables on the right panel
click on the view tab
DONE! should appear.

Refresh browser

navigate to OIO/postgres/initialize/
Click on run_me on the right panel
click on view tab
Some succesfull messages will run with All Done! at the end, and you will be asked to
create first oio user =oio
add
Done! should appear.

All Done!

close browser

start browser as http://localhost:9673/OIO

About these ads

2 Responses to “Installing OIO 1.1.0 in Ubuntu Linux – Breezy.”

  1. billyk182 Says:

    Although i reached the part of importing OIO.zexp without problems i get
    ‘The object OIO does not support this operation.’
    i’m using zope2.9 on ubuntu 7.04.

    The only thing i didn’t do is after ./install (OIO-1.0.9.zip)
    to run instal_r/install. If i do this my zope fails to start.

    Any clues?

  2. Liquid vitamins supplement body balance Says:

    Liquid vitamins supplement body balance

    Liquid vitamins supplement body balance

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: