]> Creatis software - creaWT.git/blobdiff - wt/data/infoConf_server_fcgi/Readme.txt
#Fast CGI configuration
[creaWT.git] / wt / data / infoConf_server_fcgi / Readme.txt
diff --git a/wt/data/infoConf_server_fcgi/Readme.txt b/wt/data/infoConf_server_fcgi/Readme.txt
new file mode 100644 (file)
index 0000000..442ef99
--- /dev/null
@@ -0,0 +1,119 @@
+
+As root or with sudo command:
+
+0)
+yum install fcgi-devel
+yum install mod_fcgid
+
+1) ld configuration
+cp bbtk.conf/etc/ld.so.conf.d/.
+ldconfig
+
+2) Create virtual site apache
+mkdir /var/www/testwtdbg
+mkdir /var/www/testwtdbg/docroot
+
+<rootBbtkWt> = /var/www/testwtdbg/docroot
+
+
+3)  Apache configuration
+cp fastcgi-wt.conf /etc/httpd/conf.modules.d/.
+service httpd restart
+
+4) wt temporary diractory
+mkdir /run/wt
+chown apache:apache /run/wt
+
+5) Prepare wt application site 
+
+mkdir <rootBbtkWt>/<appliBtkWt>
+mkdir <rootBbtkWt>/<appliBtkWt>/imagesTMP
+cp bbiWeb.php <rootBbtkWt>/<appliBtkWt>/.
+ln -s <INSTALATION_WT>/share/Wt/resources <rootBbtkWt>/<appliBbtkWt>/resources
+ln -s <INSTALATION_creaWT>/wt/data/reosurcesXTK <rootBbtkWt>/resourcesXTK
+ln -s <INSTALATION_BBTK>/bin/bbiWeb.wt <rootBbtkWt>/bbiWeb.wt
+
+
+6) Call application from browser
+http://localhost/<appliBbtkWt>/bbiWeb.php
+
+
+
+
+------------------------------------------------------
+
+Genaral Notes:
+--------------
+
+http://redmine.webtoolkit.eu/projects/wt/wiki/Fastcgi_on_apache
+
+https://www.howtoforge.com/how-to-set-up-apache2-with-mod_fcgid-and-php5-on-fedora-13
+
+.OK.
+http://redmine.webtoolkit.eu/projects/wt/wiki/Wt_+_Apache_+_mod_fcgid_+_Valgrind_+_gdb_+_SELinux_-_Deploy_and_Debug
+
+0) Fast CGI (FCGI) devel+apache:
+yum install fcgi-devel
+yum install mod_fcgid
+
+wtBin  -> ccmake -> 
+  CONNECTOR_FCGI ON
+  CONNECTOR_FCGI ON
+  ENABLE_EXT
+make -j8
+wtBin cmake -DEXAMPLES_CONNECTOR="wtfcgi" .
+make -C examples -j8
+
+
+
+
+FastCGI configuration:
+/etc/httpd/conf.modules.d/fastcgi-wt.conf     
+
+
+Configuration LD_libray_path  for all users
+1)
+/etc/ld.so.conf.d/bbtk.conf
+  /tmpEED/Creatis/creaTools/creatools_install/lib64/creatools
+  /tmpEED/tplI/lib/wt-3.3.4
+  /tmpEED/tplI/lib/gdcm
+  /tmpEED/tplI/lib/InsightToolkit
+  /tmpEED/tplI/lib/vtk-5.10
+2)
+Luego ejecutar> ldconfig 
+
+Appache
+ service httpd start
+ service httpd stop
+ service httpd restart
+
+See errors:
+  systemctl status httpd.service
+ /etc/httpd/logs/
+
+
+
+
+
+-------
+
+
+wt
+http://www.webtoolkit.eu/widgets
+
+
+
+---
+
+php
+-system ou exec  ??:
+http://php.net/manual/fr/function.system.php
+
+-Redirect a page:
+http://www.apprendre-php.com/tutoriels/tutoriel-15-faire-une-redirection-vers-une-autre-page.html
+
+-unique Id
+http://php.net/manual/fr/function.uniqid.php
+
+
+