]> Creatis software - creaWT.git/blob - wt/data/infoConf_server_fcgi/Readme.txt~
#2689 creaToolsTools Feature New Normal - Third party Linux WT configuration
[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.modules.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
29 cp wt_config.xml /etc/wt
30 mkdir /etc/wt
31 6) Prepare wt application site 
32
33 mkdir <rootBbtkWt>/<appliBtkWt>
34 mkdir <rootBbtkWt>/<appliBtkWt>/imagesTMP
35 cp bbiWeb.php <rootBbtkWt>/<appliBtkWt>/.
36 ln -s <INSTALATION_WT>/share/Wt/resources <rootBbtkWt>/<appliBbtkWt>/resources
37 ln -s <INSTALATION_creaWT>/wt/data/reosurcesXTK <rootBbtkWt>/resourcesXTK
38 ln -s <INSTALATION_BBTK>/bin/bbiWeb.wt <rootBbtkWt>/bbiWeb.wt
39
40
41 6) Call application from browser
42 http://localhost/<appliBbtkWt>/bbiWeb.php
43
44
45
46
47 ------------------------------------------------------
48
49 Genaral Notes:
50 --------------
51
52 http://redmine.webtoolkit.eu/projects/wt/wiki/Fastcgi_on_apache
53
54 https://www.howtoforge.com/how-to-set-up-apache2-with-mod_fcgid-and-php5-on-fedora-13
55
56 .OK.
57 http://redmine.webtoolkit.eu/projects/wt/wiki/Wt_+_Apache_+_mod_fcgid_+_Valgrind_+_gdb_+_SELinux_-_Deploy_and_Debug
58
59 0) Fast CGI (FCGI) devel+apache:
60 yum install fcgi-devel
61 yum install mod_fcgid
62
63 wtBin  -> ccmake -> 
64   CONNECTOR_FCGI ON
65   CONNECTOR_FCGI ON
66   ENABLE_EXT
67 make -j8
68 wtBin cmake -DEXAMPLES_CONNECTOR="wtfcgi" .
69 make -C examples -j8
70
71
72
73
74 FastCGI configuration:
75 /etc/httpd/conf.modules.d/fastcgi-wt.conf     
76
77
78 Configuration LD_libray_path  for all users
79 1)
80 /etc/ld.so.conf.d/bbtk.conf
81   /tmpEED/Creatis/creaTools/creatools_install/lib64/creatools
82   /tmpEED/tplI/lib/wt-3.3.4
83   /tmpEED/tplI/lib/gdcm
84   /tmpEED/tplI/lib/InsightToolkit
85   /tmpEED/tplI/lib/vtk-5.10
86 2)
87 Luego ejecutar> ldconfig 
88
89 Appache
90  service httpd start
91  service httpd stop
92  service httpd restart
93
94 See errors:
95   systemctl status httpd.service
96  /etc/httpd/logs/
97
98
99
100
101
102 -------
103
104
105 wt
106 http://www.webtoolkit.eu/widgets
107
108
109
110 ---
111
112 php
113 -system ou exec  ??:
114 http://php.net/manual/fr/function.system.php
115
116 -Redirect a page:
117 http://www.apprendre-php.com/tutoriels/tutoriel-15-faire-une-redirection-vers-une-autre-page.html
118
119 -unique Id
120 http://php.net/manual/fr/function.uniqid.php
121
122
123