]> 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 Creados por EED
70
71 FastCGI configuration:
72 /etc/httpd/conf.modules.d/fastcgi-wt.conf     
73
74
75 Configuration LD_libray_path  for all users
76 1)
77 /etc/ld.so.conf.d/bbtk.conf
78   /tmpEED/Creatis/creaTools/creatools_install/lib64/creatools
79   /tmpEED/tplI/lib/wt-3.3.4
80   /tmpEED/tplI/lib/gdcm
81   /tmpEED/tplI/lib/InsightToolkit
82   /tmpEED/tplI/lib/vtk-5.10
83 2)
84 Luego ejecutar> ldconfig 
85
86 Appache
87  service httpd start
88  service httpd stop
89  service httpd restart
90
91 See errors:
92   systemctl status httpd.service
93  /etc/httpd/logs/
94
95
96
97
98
99 -------
100
101
102 wt
103 http://www.webtoolkit.eu/widgets
104
105
106
107 ---
108
109 php
110 -system ou exec  ??:
111 http://php.net/manual/fr/function.system.php
112
113 -Redirect a page:
114 http://www.apprendre-php.com/tutoriels/tutoriel-15-faire-une-redirection-vers-une-autre-page.html
115
116 -unique Id
117 http://php.net/manual/fr/function.uniqid.php
118
119
120