このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
Tag Cloud
このページへのアクセス
今日: 5 / 昨日: 1
総計: 1019
- Dokuwiki.fl8.jp(170)
- 13 CentOS6メール設定(10)
- 02 ProFTPD(9)
- 14 rsync(9)
最近の更新
このページへのアクセス
今日: 5 / 昨日: 1
総計: 1019
# yum -y install autoconf libtool gcc-c++ # yum install httpd php php-mysql php-mbstring mod_ssl apr-devel httpd-devel
# wget http://www.suphp.org/download/suphp-0.7.2.tar.gz # tar zxvf suphp-0.7.2.tar.gz # cd suphp-0.7.2 # autoreconf --force --install ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --with-apr=/usr/bin/apr-1-config \ --with-apxs=/usr/sbin/apxs \ --with-apache-user=apache \ --with-setid-mode=owner \ --with-logfile=/var/log/httpd/suphp_log \ --with-min-uid=100 \ --with-min-gid=100 # make # make install
[global]
;Path to logfile
;logfile=/var/log/suphp.log
logfile=/var/log/httpd/suphp.log
;Loglevel
loglevel=info
;User Apache is running as
webserver_user=apache
;Path all scripts have to be in
docroot=/
;Path to chroot() to before executing script
;chroot=/mychroot
; Security options
allow_file_group_writeable=false
allow_file_others_writeable=false
allow_directory_group_writeable=false
allow_directory_others_writeable=false
;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=true
;Send minor error messages to browser
errors_to_browser=false
;PATH environment variable
env_path="/bin:/usr/bin"
;Umask to set, specify in octal notation
umask=0077
; Minimum UID
min_uid=100
; Minimum GID
min_gid=100
[handlers]
;Handler for php-scripts
x-httpd-php="php:/usr/bin/php-cgi"
x-httpd-php56="php:/usr/bin/php56-cgi"
x-httpd-php71="php:/usr/bin/php71-cgi"
;Handler for CGI-scripts
x-suphp-cgi="execute:!self"
LoadModule suphp_module modules/mod_suphp.so suPHP_Engine on AddHandler x-httpd-php .php AddHandler x-httpd-php56 .php AddHandler x-httpd-php71 .php suPHP_ConfigPath /etc suPHP_AddHandler x-httpd-php suPHP_AddHandler x-httpd-php56 suPHP_AddHandler x-httpd-php71