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