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):
- python2.3 and python2.3-dev
- postgresql server and client -use 8.0 version
- postgresql common
parsedxml package may be downloaded and installed by simply unpacking it in the usr/lib/zope2.7/lib/python/Products directory
as superuser – sudo su
Create a zopeinstance for yourself.
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
There is a zope.conf file.
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
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 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
To initialize the database and run the postmaster server do this
sudo su postgres (give you Ubuntu password when asked)
./initdb -D /var/lib/postgresql/data
there will be some happy messages of success!!
From now on to start the postmaster
$ cd /usr/lib/postgresql/8.0/bin/
$ ./postmaster -D /var/lib/postgresql/data
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
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
Or just start pgadmin3
add server from file menu or right clickl on the “servers”
description = pgserver
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
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
cd to the import directory
chown -R postgres:postgres OIO
when asked for the zope directory give
when asked for the instance give
login to ZMI, open the acl_user folderadd user oio role as manager with password
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}
click OIO folder in the left panel and get to Properties tab
my_database to publicdb
auto_his_assignments – change to no ( it is set as “yes” by default )
Correct the URL of the base_URL (at the bottom part of web form) as follows
Set the external base and forms URL to the same as above
Set the reports URL to
save changes NOW!
click OIO folder in the left panel and get to
click on define_initial_tables on the right panel
click on the view tab
DONE! should appear.
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
Done! should appear.
start browser as http://localhost:9673/OIO