1 |
openMairie Exemple |
2 |
================== |
3 |
|
4 |
AUTEURS openFoncier ========================================================= |
5 |
Francois Raynaud / [email protected] |
6 |
Jean-Louis Bastide / [email protected] |
7 |
alain baldachino / [email protected] |
8 |
francis astay / [email protected] |
9 |
yves rakotovahiny /[email protected] |
10 |
laurent bouquet / [email protected] |
11 |
|
12 |
|
13 |
============================================================================== |
14 |
|
15 |
_____________________________________________________________________________ |
16 |
Pre requis : |
17 |
============ |
18 |
Vous devez avoir installer: |
19 |
- un serveur apache et php |
20 |
- une base de donnees : mysql ou postgresql |
21 |
----------------------------------------------------------------------------- |
22 |
Prerequisite : |
23 |
============ |
24 |
You must have the following services installed : |
25 |
- Apache server with php extension |
26 |
- database server : mysql or postgresql |
27 |
_____________________________________________________________________________ |
28 |
En fait, reportez vous aux installations de : |
29 |
- sous windows : wamp (http://www.wampserver.com/) |
30 |
ou easyphp(http://easyphp.fr/) |
31 |
- sous linux : lamp |
32 |
|
33 |
Si vous utilisez postgre sql, voir install sur le site : |
34 |
http://www.postgresqlfr.org/ |
35 |
|
36 |
Si vous debutez, il est plus simple de garder mysql qui est packagee avec |
37 |
easyphp ou wamp. |
38 |
----------------------------------------------------------------------------- |
39 |
you should report to the installations of : |
40 |
- for windows : wamp (http://www.wampserver.com/) |
41 |
or easyphp(http://easyphp.fr/) |
42 |
- for Linux : lamp |
43 |
|
44 |
In case you use postgresql, you also have to install postgresql |
45 |
(http://www.postgresqlfr.org/) |
46 |
|
47 |
If you're new to all that, it'd be easier to keep mysql that comes |
48 |
included in the easyphp or wamp package. |
49 |
_____________________________________________________________________________ |
50 |
* Installation de openmairie_xxx -> voir INSTALL.TXT |
51 |
copier le repertoire openmairie_xxx sur votre serveur |
52 |
wamp/www/openmairie_xxx |
53 |
sous linux (debian) : var/www/openmairie_xxx |
54 |
----------------------------------------------------------------------------- |
55 |
Install openmairie_xxx -> see INSTALL.TXT |
56 |
copy the openmairie_xxx folder on your server |
57 |
wamp/www/openmairie_xxx |
58 |
for Linux (Debian) : var/www/openmairie_xxx |
59 |
___________________________________________________________________________ |
60 |
* Initialisation de la base en MySQL ou Postgresql |
61 |
creer la base openxxx sur mysql |
62 |
Ensuite, il faut creer les tables de la base de donnees |
63 |
puis executer les scripts SQL suivants : |
64 |
- en mysql : |
65 |
data/mysql/init.sql |
66 |
- en pgsql |
67 |
data/pgsql/init.sql |
68 |
---------------------------------------------------------------------------- |
69 |
Initialize the MySQL or postgresql database |
70 |
create the openxxx database on mysql or pgsql |
71 |
Then, you have to create the database tables |
72 |
then execute the following SQL scripts : |
73 |
- for mysql : |
74 |
openmairie_recensement/data/mysql/init.sql |
75 |
- for pgsql |
76 |
openmairie_recensement/data/pgsql/init.sql |
77 |
____________________________________________________________________________ |
78 |
* parametrer la connexion dans /dyn/database.inc.php |
79 |
|
80 |
parametrage par defaut : |
81 |
conn[1] est un tableau php qui contient les parametres de connexion suivants |
82 |
'titre => 'openxxx (mysql ou pgsql)',[parametrage openmairie] |
83 |
'phptype' => 'mysql', ou 'pgsql' [ne pas changer parametrage dbpear] |
84 |
'dbsyntax' => '',[ne pas changer parametrage dbpear] |
85 |
'username' => 'root', [par defaut sur wamp easyphp ou lamp / |
86 |
a voir avec le fournisseur d acces le cas echeant] |
87 |
'password' => '' [par defaut sur wamp easyphp ou lamp / |
88 |
a voir avec le fournisseur d acces le cas echeant] |
89 |
'protocol' => '', |
90 |
'hostspec' => 'localhost', [nom de serveur par defaut wamp ou easyphp] |
91 |
'port' => '', [ne pas changer parametrage dbpear] |
92 |
'socket' => '', [ne pas changer parametrage dbpear] |
93 |
nom de la base => 'openxxx', [parametrage openmairie] |
94 |
format date par defaut =>'AAAA-MM-JJ' [[parametrage openmairie ne pas changer] |
95 |
shema => '' ou 'public' pour postgre |
96 |
prefixe => '' |
97 |
---------------------------------------------------------------------------------- |
98 |
setting up the connection in /dyn/database.inc.php |
99 |
|
100 |
default settings : |
101 |
conn[1] is a php array containing the following connection settings |
102 |
'titre => 'openxxx ',[openmairie setting] |
103 |
'phptype' => 'mysql', or 'pgsql' [do not change dbpear setting] |
104 |
'dbsyntax' => '',[do not change dbpear setting] |
105 |
'username' => 'root', [default setting on wamp easyphp or lamp / |
106 |
see with provider if needed] |
107 |
'password' => '' [default setting on wamp easyphp or lamp / |
108 |
see with provider if needed] |
109 |
'protocol' => '', |
110 |
'hostspec' => 'localhost', [default server name for wamp or easyphp] |
111 |
'port' => '', [do not change dbpear setting] |
112 |
'socket' => '', [do not change dbpear setting] |
113 |
'dbname' => 'openxxx', [openmairie setting] |
114 |
'default date format' =>'AAAA-MM-JJ' [do not change openmairie setting] |
115 |
'shema' => '' ou 'public' for postgre |
116 |
'prefixe' => '' |
117 |
_________________________________________________________________________________ |
118 |
ATTENTION : |
119 |
Ne pas oublier de faire une sauvegarde du repertoire /trs ou sont stockees toutes |
120 |
les donnees numerisees (photos, arretes, autorisation ...) |
121 |
|
122 |
Sous linux mettre les droits d ecriture |
123 |
Mise en place du logo |
124 |
---------------------------------------------------------------------------------- |
125 |
BE CAREFUL : |
126 |
Do not forget to backup the folder /trs where are stored all the digital datas |
127 |
(photos, pdf...) |
128 |
|
129 |
On Linux, you have to set the "write" permissions (see 2.5) |
130 |
Setting up the logo |
131 |
__________________________________________________________________________________ |
132 |
* LOGIN PASSWORD [table om_utilisateur] |
133 |
demo/demo |
134 |
admin/admin |
135 |
______________________________________________________________________________ |
136 |
* Parametage [setting] : /dyn |
137 |
dyn/var.inc |
138 |
dyn/config.inc.php |
139 |
activer descastiver le mode demo |
140 |
[activate /desactivate] |
141 |
path des librairies utilisees [path libraries] |
142 |
theme jquery |
143 |
________________________________________________________________________ |
144 |
* Libraries : javascript (js), php, sql, translation |
145 |
|
146 |
- js |
147 |
externals : lib/ (jquery,tinymce,openlayer ...) |
148 |
internals : js/ |
149 |
|
150 |
- php |
151 |
externals: php/ (openMairie, pear, fpdf) |
152 |
internals: scr/ (screen / ecrans) |
153 |
spg/ (sous progr generique : combo, upload, localization, rvb ...) |
154 |
trt/ (treatment) |
155 |
gen/ (generator) |
156 |
obj/ objet métier |
157 |
|
158 |
- sql data/ ... initialization |
159 |
sql/ ... |
160 |
|
161 |
translation : /locales |
162 |
|
163 |
[documentation] ======================= |
164 |
toute la documentation sur : |
165 |
[All the documentation] on: |
166 |
http://www.openmairie.org |
167 |
======================================= |
168 |
|
169 |
FRAMEWORK openMairie 4.0.0 |
170 |
Francois Raynaud <[email protected]> |
171 |
Florent Michon<[email protected]> |
172 |
Jean-Louis Bastide <[email protected]> |
173 |
Thierry Benita <[email protected]> |
174 |
frederic giva <[email protected]> |
175 |
freddy francois <[email protected]> |