Сейчас имеем следующее:
dpkg --list | grep suexe
ii apache2-suexec 2.2.9-10+lenny2 Standard suexec program for Apache 2 mod_suexec
apt-cache search suexec
apache2-suexec - Standard suexec program for Apache 2 mod_suexec
apache2-suexec-custom - Configurable suexec program for Apache 2 mod_suexec
Provides a customizable version of the suexec helper program for mod_suexec. This is not the version from upstream, but can be configured with a configuration file.
If you do not need non-standard document root or userdir settings, it is recommended that you use the standard suexec helper program from the apache2-suexec package instead.
Иными словами, хотите конфигурировать userdir / docroot, то юзайте *-custom.
Конфиг файл его вот такой: /etc/apache2/suexec/www-data и стандартно имеет вид:
/var/www
public_html/cgi-bin
# The first two lines contain the suexec document root and the suexec userdir
# suffix. Both features can be disabled separately by prepending a # character.
# This config file is only used by the apache2-suexec-custom package.
Приводим в вид:
/home
data/php-bin
# The first two lines contain the suexec document root and the suexec userdir
# suffix. Both features can be disabled separately by prepending a # character.
# This config file is only used by the apache2-suexec-custom package.
И ребутим Апач, после этого нормально будет работать php_cgi.
No comments :
Post a Comment
Note: only a member of this blog may post a comment.