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