File:  [ELWIX - Embedded LightWeight unIX -] / suX / README
Revision 1.1.2.1: download - view: text, annotated - select for diffs - revision graph
Thu Jun 18 22:44:19 2015 UTC (9 years ago) by misho
Branches: sux3_3
adds file

    1: suX program is flexible CGI/FastCGI wrappper
    2: ============================================
    3:  (C)`11 AITNET - Sofia/Bulgaria
    4:     by Michael Pounov <misho@elwix.org>
    5: 
    6:  $Id: README,v 1.1.2.1 2015/06/18 22:44:19 misho Exp $
    7: ============================================
    8: 
    9: How to build, install and use with apache server 
   10: ------------------------------------------------
   11: 
   12: 0) Build and install suX on the operating system. See INSTALL file!
   13: 1) Install in system mod_fcgid FastCGI apache module
   14: 2) Modify httpd.conf like that
   15: 	.....
   16: 
   17: 	LoadModule fcgid_module /usr/local/lib/apache2/mod_fcgid.so
   18: 
   19: 	.....
   20: 3) Do this into apache config
   21: 	.....
   22: 
   23: 	AddType application/x-httpd-php .php .phtml .php3 .php4 .php5 .inc
   24: 	AddType application/x-httpd-php-source .phps
   25: 
   26: 	<IfModule mod_fcgid.c>
   27: 		AddHandler fcgid-script .fcgi .php .php3 .php4 .php5 .inc .phps .pl
   28: 		FCGIWrapper /exports/hosting/www/cgi-bin/php-fcgi .php
   29: 		FCGIWrapper /exports/hosting/www/cgi-bin/php-fcgi .phps
   30: 		FCGIWrapper /exports/hosting/www/cgi-bin/php-fcgi .php3
   31: 		FCGIWrapper /exports/hosting/www/cgi-bin/php-fcgi .php4
   32: 		FCGIWrapper /exports/hosting/www/cgi-bin/php-fcgi .php5
   33: 		FCGIWrapper /exports/hosting/www/cgi-bin/php-fcgi .inc
   34: 	</IfModule>
   35: 
   36: 	.....
   37: 4) Copy etc/php-fcgi wrapper script from project in apache cgi-bin directory. 
   38: If you want to change effective user. Just changes in value of SUX_USER into php-fcgi script ;)
   39: 
   40: 5) Copy etc/suX.conf in /etc and change associated file types to right program paths
   41: 
   42: Ok! After few steps we are ready to use web in more safe environment :D

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>