source: INSTALL @ 3550449

Revision 3550449, 3.9 KB checked in by Benoit Grégoire <benoitg@…>, 7 years ago (diff)

Fix path

  • Property mode set to 100644
Line 
1Postgres:
2
3Login as root then switch to database superuser ( using "su postgres" ).
4
5Create the postgres database (change --locale to the apporpriate value for your users):
6
7        initdb --encoding=UTF-8 --locale fr_CA.UTF-8 --pgdata=/var/lib/pgsql/data/
8
9As database superuser (normally postgres), add PG/PGSQL stored procedure support.  This may require you to add an additional package (Oddly enough on Mandrake the plpgsql module is found in the postgresql-pl rpm, along with perl support)
10
11        createlang plpgsql template1
12
13Create the eureka user (or some other user) in postgres and linux.  If you use some other user you will have to change it in config/config.php
14   
15    createuser eureka -P (Give the user database create access)
16    adduser eureka -p
17
18You probably want to make sure your postgres server is listening for connections so you can use pgadmin3.  Among other thing, in the CONNECTIONS AND AUTHENTICATION of /var/lib/pgsql/data/postgresql.conf you may need to add:
19(When using Postgresql >= 8.0, you don't need set this variable)
20tcpip_socket = true
21
22
23Make sure that you have the proper permissions for PHP to accest the postgres server.
24
25If you don't want to use TCP/IP sockets, set CONF_DATABASE_HOST to '' (the default) in php/config/config.php and then replace
26local  all     all     ident   sameuser
27with
28local  all     all     password
29in /var/lib/pgsql/data/pg_hba.conf
30
31If you want to use TCP/IP socket, set CONF_DATABASE_HOST to 'localhost'.  You'll probably have to add the following line to /var/lib/pgsql/data/pg_hba.conf:
32host all all 127.0.0.1 255.255.255.255 password
33
34
35Import the template database  (as the eureka user)
36
37        psql -d template1 -U eureka -W -f eureka-postgres.sql
38
39WARNING:  Should you re-run this file to start over, it will delete your entire database and rebuild-it from scatch.
40       
41Add PG/PGSQL stored procedures:
42
43        psql -d template1 -U eureka -W -f nested_set_api.sql
44
45PHP:
46
47Install the required modules:
48- dom
49- pgsql
50- mbstring
51- PEAR with Date and Log modules ( manual installation is possible see below )
52- gd
53
54-------------------
55PEAR installation :
56-------------------
57
58The procedure below is for PHP 5.0.2 under Mandrake 10.1.  You WILL need to adapt it under other distributions. 
59
60All necessary RPM packages are available in the contrib urpmi source.  If you don't have a contrib source already, you can add one with the command:
61urpmi.addmedia contrib http://gulus.usherbrooke.ca/pub/distro/Mandrakelinux/official/10.1/i586/media/contrib with media_info/hdlist.cz
62
63You'll need the following packages:
64libphp5-commons
65php5-cli
66php5-devel
67php5-xml
68php5-xmlrpc ---> depends on libxmlrpc ( provides PEAR auto installation )
69
70The following command should install them all and resolve dependencies:
71
72urpmi php5-cli php5-devel php5-xml php5-xmlrpc
73
74To install PEAR, run this in a shell:
75"lynx -source http://go-pear.org | php5"
76
77*************
78WARNING:
79You must have PHP5 CLI with php5ize installed
80NB : By default Mandrake renames the PHP binaries with a 5 suffix.  You should create symbolic links so that you can use standard scripts:
81
82ln -s /usr/bin/php5 /usr/bin/php
83ln -s /usr/bin/php5ize /usr/bin/phpize
84*************
85
86Now you'll need a few packages, you can let PEAR install them
87automatically:
88
89pear install Date
90
91-----------------------
92Change /php/config/config.php constants to reflect your server configuration
93Do not forget to set SYSTEM_FULL_PATH adequatly, you can alternatly create a simlink
94ln -s -f /home/xyz/eureka/trunk/html /var/www/eureka
95
96Compiling translations
97--------------------
98goto /po and run "sh compile.sh", this will compile all languages available
99Restart Apache so that Gettext clears its cache.
100
101Log into the system (Eureka) using admin/admin password.
102From the admin interface, import the VDEX vocabularies necessary for the system to function (they are stored in sql/vocabularies-vdex.xml)
103
104-----------------------
105Note that the perl cpan module Archive::Zip is required to export OASIS Opendocument books.
Note: See TracBrowser for help on using the repository browser.