suexec
重新编译Apache
XML/HTML代码
- ./configure –prefix=/usr/local/httpd2 –sbindir=/usr/local/httpd2/sbin –enable-so –enable-rewrite=shared –enable-deflate –enable-nonportable-atomics –with-ssl=/usr/lib64/openssl –with-expat=builtin –enable-suexec –with-suexec-caller=www –with-suexec-userdir=public_html –with-suexec-docroot=/www/htdocs –with-suexec-uidmin=103 –with-suexec-gidmin=504
在虚拟主机:
XML/HTML代码
- SuexecUserGroup seaprince vhostuser
- ScriptAlias /cgi-bin/ /www/htdocs/public_users/blog.eaxi.com/public_html/cgi-bin/
- <Location "/php-cgi/php">
- SetHandler fcgid-script
- Options ExecCGI
- Allow from all
- </Location>
家目录:
XML/HTML代码
- mkdir -p ~/public_html/cgi-bin
- cp /usr/local/php5/bin/php-cgi ~/public_html/cgi-bin/php.cgi
- chown seaprince.vhostuser -R /public_html/cgi-bin/
重启Apache