Independent Installation on Windows

33 Figure 6.3: Typical OpenERP configuration file 3. Is your PostgreSQL running? Signed in as administrator, select Stop Service from the menu Start → Pro- grams → PostgreSQL. If after a couple of seconds, you read The PostgreSQL4OpenERP service has stopped then you can be reasonably sure that the database server was working. Restart PostgreSQL. 4. Is the database accessible? Still in the PostgreSQL menu, start the pgAdmin III application which you can use to explore the database. Double-click the PostgreSQL4OpenERP connection. You can find the password in the OpenERP server configuration file. If the database server is accessible you will be able to see some information about the empty database. If it is not, an error message will appear. 5. Are your client programs correctly installed? If your OpenERP GTK clients have not started, the swiftest approach is to reinstall them. 6. Can remote client computers see the server computer at all? Check this by opening a command prompt window enter cmd in the window Start → Run... and enter ping address of server there where address of server represents the IP address of the server. The server should respond with a reply. 7. Have you changed any of the server’s parameters? At this point in the installation the port number of the server must be 8069 using the protocol XML-RPC. 8. Is there anything else in the server’s history that can help you identify the problem? Open the file openerp-server.log in C:\Program Files\OpenERP AllInOnewhich you can only do when the server is stopped and scan through the history for ideas. If something looks strange there, con- tributors to the OpenERP forums can often help identify the reason.

6.2.2 Installation on Linux Ubuntu

This section guides you through installing the OpenERP server and client on Ubuntu, one of the most popular Linux distributions. It assumes that you are using a recent release of Desktop Ubuntu with its graphical user 34 interface on a desktop or laptop PC. Note: Other Linux distributions Installation on other distributions of Linux is fairly similar to installation on Ubuntu. Read this section of the book so that you understand the principles, then use the online documentation and the forums for your specific needs on another distribution. For information about installation on other distributions, visit the documentation section by following Services → Documentation on http:www.openerp.com . Detailed instructions are given there for different distributions and releases, and you should also check if there are more up to date instructions for the Ubuntu distribution as well. Technical procedure: Initial installation and configuration Upgrade of Ubuntu packages and installation of OpenERP and pgadmin: sudo apt-get update sudo apt-get upgrade sudo apt-get install openerp-server openerp-client pgadmin3 To avoid having some of the labels untranslated in the GTK client, install the language-pack-gnome- YOURLANG-base package. The following command installs the Spanish language pack: sudo apt-get install language-pack-gnome-es-base PostgreSQL version 8.4 has been used at the time of writing. You may have to replace the version number in the commands below with your own PostgreSQL version number if it differs. Postgres Database configuration: sudo vi etcpostgresql8.4mainpg_hba.conf Replace the following line: “local” is for Unix domain socket connections only local all all ident with: ”local” is for Unix domain socket connections only local all all md5 Restart Postgres: sudo etcinit.dpostgresql-8.4 restart Restarting PostgreSQL 8.4 database server [ OK ] The following two commands will avoid problems with etcinit.dopenerp-web INIT script: sudo mkdir homeopenerp sudo chown openerp.nogroup homeopenerp Create a user account called openerp with password “openerp” and with privileges to create Postgres databases: sudo su postgres createuser openerp -P Enter password for new role: openerp Enter it again: Shall the new role be a superuser? yn n 35 Shall the new role be allowed to create databases? yn y Shall the new role be allowed to create more new roles? yn n Quit from user postgres: exit exit Edit OpenERP configuration file: sudo vi etcopenerp-server.conf Replace the following two lines we don’t force to use a specific database and we add the required password to gain access to postgres: db_name = db_user = openerp db_password = openerp We can now restart openerp-server: sudo etcinit.dopenerp-server restart Restarting openerp-server: openerp-server. Check out the logs: sudo cat varlogopenerp.log [2009-06-14 21:06:39,314] INFO:server:version - 6.0.0 [2009-06-14 21:06:39,314] INFO:server:addons_path - usrlibopenerp-serveraddons [2009-06-14 21:06:39,314] INFO:server:database hostname - localhost [2009-06-14 21:06:39,315] INFO:server:database port - 5432 [2009-06-14 21:06:39,315] INFO:server:database user - openerp [2009-06-14 21:06:39,315] INFO:objects:initialising distributed objects services [2009-06-14 21:06:39,502] INFO:web-services:starting XML-RPC services, port 8069 [2009-06-14 21:06:39,502] INFO:web-services:starting NET-RPC service, port 8070 [2009-06-14 21:06:39,502] INFO:web-services:the server is running, waiting for connections... OpenERP is now up and running, connected to Postgres database on port 5432 and listening on ports 8069 and 8070 ps uaxww | grep -i openerp openerp 5686 0.0 1.2 84688 26584 pts7 Sl+ 12:36 0:03 usrbinpython .openerp-server.py sudo lsof -i :8069 COMMAND PID USER FD TYPE DEVICE SIZEOFF NODE NAME python 5686 openerp 3u IPv4 116555 0t0 TCP :8069 LISTEN