--- suX/README 2015/06/18 22:44:19 1.1 +++ suX/README 2015/06/18 23:03:52 1.2 @@ -0,0 +1,43 @@ +============================================ + (C)`11 AITNET - Sofia/Bulgaria + by Michael Pounov + + $Id: README,v 1.2 2015/06/18 23:03:52 misho Exp $ +============================================ + +suX program is flexible CGI/FastCGI wrappper + +How to build, install and use with apache server +------------------------------------------------ + +0) Build and install suX on the operating system. See INSTALL file! +1) Install in system mod_fcgid FastCGI apache module +2) Modify httpd.conf like that + ..... + + LoadModule fcgid_module /usr/local/lib/apache2/mod_fcgid.so + + ..... +3) Do this into apache config + ..... + + AddType application/x-httpd-php .php .phtml .php3 .php4 .php5 .inc + AddType application/x-httpd-php-source .phps + + + AddHandler fcgid-script .fcgi .php .php3 .php4 .php5 .inc .phps .pl + FCGIWrapper /exports/hosting/www/cgi-bin/php-fcgi .php + FCGIWrapper /exports/hosting/www/cgi-bin/php-fcgi .phps + FCGIWrapper /exports/hosting/www/cgi-bin/php-fcgi .php3 + FCGIWrapper /exports/hosting/www/cgi-bin/php-fcgi .php4 + FCGIWrapper /exports/hosting/www/cgi-bin/php-fcgi .php5 + FCGIWrapper /exports/hosting/www/cgi-bin/php-fcgi .inc + + + ..... +4) Copy cgi/php-fcgi wrapper script from project to apache cgi-bin directory. +If you want to change effective user. Just changes in value of SUX_USER into php-fcgi script ;) + +5) Copy etc/suX.conf in /etc and change associated file types to right program paths + +Ok! After few steps we are ready to use web in more safe environment :D