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