apt-get install -y apache2-suexec
Showing posts with label suexec. Show all posts
Showing posts with label suexec. Show all posts
Sunday, 29 November 2009
Debian 5 Lenny Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Фиксица легко:
Sunday, 5 April 2009
suexec + ISPmanager
Такая неприятная ситуация происходит, когда меняешь дефалтную папку клиента на /home c /var/www, а suexec в это время жестко привязан к папке /var/www и это не перенастраивается.
Сейчас имеем следующее:
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
Иными словами, хотите конфигурировать userdir / docroot, то юзайте *-custom.
Конфиг файл его вот такой: /etc/apache2/suexec/www-data и стандартно имеет вид:
Приводим в вид:
И ребутим Апач, после этого нормально будет работать php_cgi.
Сейчас имеем следующее:
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.
Subscribe to:
Posts
(
Atom
)