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