]> Creatis software - creaWT.git/blob - wt/data/infoConf_server_fcgi/Readme.txt
#3052 creaWT Feature New Normal - Install documentation
[creaWT.git] / wt / data / infoConf_server_fcgi / Readme.txt
1
2 As root or with sudo command:
3
4 1) BBTK
5 Compile bbtk with the cmake option USE_WT
6 (Make sure you are in a new consolo with all the thirdparty variables are loaded)
7
8 2) Compile and install le package de creaWt
9 definir <creaWTInstall>
10
11 3)
12 dnf install fcgi-devel
13 dnf install mod_fcgid
14
15 4) ld configuration
16 cp bbtk.conf  /etc/ld.so.conf.d/.
17 4.1) check the path of the file  /etc/ld.so.conf.d/bbtk.conf
18 4.2) execute :
19 ldconfig
20
21 4.2) Check the paths of the file
22
23 5) Create virtual site apache
24 mkdir /var/www/testwtdbg
25 mkdir /var/www/testwtdbg/docroot
26
27 <rootBbtkWt> = /var/www/testwtdbg/docroot
28
29
30 6)  Apache configuration
31 cp fastcgi-wt.conf /etc/httpd/conf.d/.
32 service httpd restart
33
34 7) wt temporary diractory
35 mkdir /var/run/wt
36 chown apache:apache /var/run/wt
37
38 8) wt CONFIGURATION
39 mkdir /etc/wt
40 cp wt_config.xml /etc/wt/.
41
42 9) Prepare wt application site 
43
44 mkdir <rootBbtkWt>/<appliBtkWt>
45 chown apache:apache <rootBbtkWt>/<appliBtkWt>
46 mkdir <rootBbtkWt>/<appliBtkWt>/imagesTMP
47 cp bbiWeb.php <rootBbtkWt>/<appliBtkWt>/.
48 ln -s <INSTALATION_BBTK>/share/Wt/resources <rootBbtkWt>/<appliBbtkWt>/resources
49 ln -s <INSTALATION_creaWTInstall>/share/data/reosurcesXTK <rootBbtkWt>/resourcesXTK
50 ln -s <INSTALATION_BBTK>/bin/bbiWeb.wt <rootBbtkWt>/bbiWeb.wt
51
52 10) To cofigure new Package in 
53 <rootBbtkWt>/.bbtk/bbtk_config.xml
54 with 
55         <bbs_path>
56                 <creaWTInstall>/share/bbtk/bbs
57         </bbs_path>
58         <package_path>
59                 <creaWTbin>   OR    <creaWTInstall>/lib64/creatools
60         </package_path>
61
62
63
64
65 11) Call application from browser
66 http://localhost/<appliBbtkWt>/bbiWeb.php
67
68
69
70
71 ------------------------------------------------------
72 TODO: 
73 0) BUG: bbiWeb.wt reads just 1 bbs : demoPresentacion1Boton02.bbs
74 0.5) BUG The tempFiles from bbtk-wt are in nn 
75
76 1) BUG: Modify Thirdparty-install-Base-rpm.sh  
77      separate the devel modules
78 2) FUTURE: Add creaWT in bbtk stuff
79 3) FUTURE: Install de directory data of creaWT  in share/creaWT/data
80 4) BUG: creaWT/wt/data/resourcesXTK  <reosurcesXTK>
81 5) bbtk-WT  hola.nii can't be generated automaticaly
82 ------------------------------------------------------
83
84
85 Genaral Notes:
86 --------------
87
88 http://redmine.webtoolkit.eu/projects/wt/wiki/Fastcgi_on_apache
89
90 https://www.howtoforge.com/how-to-set-up-apache2-with-mod_fcgid-and-php5-on-fedora-13
91
92 .OK.
93 http://redmine.webtoolkit.eu/projects/wt/wiki/Wt_+_Apache_+_mod_fcgid_+_Valgrind_+_gdb_+_SELinux_-_Deploy_and_Debug
94
95 0) Fast CGI (FCGI) devel+apache:
96 yum install fcgi-devel
97 yum install mod_fcgid
98
99 wtBin  -> ccmake -> 
100   CONNECTOR_FCGI ON
101   CONNECTOR_FCGI ON
102   ENABLE_EXT
103 make -j8
104 wtBin cmake -DEXAMPLES_CONNECTOR="wtfcgi" .
105 make -C examples -j8
106
107
108
109
110 FastCGI configuration:
111 /etc/httpd/conf.modules.d/fastcgi-wt.conf     
112
113
114 Configuration LD_libray_path  for all users
115 1)
116 /etc/ld.so.conf.d/bbtk.conf
117   /tmpEED/Creatis/creaTools/creatools_install/lib64/creatools
118   /tmpEED/tplI/lib/wt-3.3.4
119   /tmpEED/tplI/lib/gdcm
120   /tmpEED/tplI/lib/InsightToolkit
121   /tmpEED/tplI/lib/vtk-5.10
122 2)
123 Luego ejecutar> ldconfig 
124
125 Appache
126  service httpd start
127  service httpd stop
128  service httpd restart
129
130 See errors:
131   systemctl status httpd.service
132  /etc/httpd/logs/
133
134
135
136
137
138 -------
139
140
141 wt
142 http://www.webtoolkit.eu/widgets
143
144
145
146 ---
147
148 php
149 -system ou exec  ??:
150 http://php.net/manual/fr/function.system.php
151
152 -Redirect a page:
153 http://www.apprendre-php.com/tutoriels/tutoriel-15-faire-une-redirection-vers-une-autre-page.html
154
155 -unique Id
156 http://php.net/manual/fr/function.uniqid.php
157
158
159