проблема:
у меня прекрасно работат apache22 + fcgid + php, когда добавляю suexec нихуя не пашет, и 255 ошибка ....
Код: Выделить всё
/usr/local/etc/apache22# httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:8080 is a NameVirtualHost
default server veiz.ru (/usr/local/etc/apache22/httpd.domains:1)
port 8080 namevhost veiz.ru (/usr/local/etc/apache22/httpd.domains:1)
port 8080 namevhost clear.helldude.ru (/usr/local/etc/apache22/httpd.domains:33)
port 8080 namevhost hell.helldude.ru (/usr/local/etc/apache22/httpd.domains:65)
port 8080 namevhost helldude.ru (/usr/local/etc/apache22/httpd.domains:97)
port 8080 namevhost svn.helldude.ru (/usr/local/etc/apache22/httpd.domains:129)
port 8080 namevhost trac.helldude.ru (/usr/local/etc/apache22/httpd.domains:161)
port 8080 namevhost 2315.ru (/usr/local/etc/apache22/httpd.domains:193)
Код: Выделить всё
/usr/local/etc/apache22# httpd -M
Loaded Modules:
core_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
authz_host_module (shared)
include_module (shared)
filter_module (shared)
charset_lite_module (shared)
log_config_module (shared)
logio_module (shared)
env_module (shared)
mime_magic_module (shared)
expires_module (shared)
headers_module (shared)
setenvif_module (shared)
version_module (shared)
mime_module (shared)
status_module (shared)
autoindex_module (shared)
suexec_module (shared)
vhost_alias_module (shared)
dir_module (shared)
rewrite_module (shared)
fcgid_module (shared)
Syntax OK
Код: Выделить всё
<VirtualHost *:8080>
ServerAdmin info@helldude.ru
ServerName helldude.ru
ServerAlias www.helldude.ru
ErrorLog "/usr/home/phpdude/logs/apache.helldude.ru.error.log"
CustomLog "/usr/home/phpdude/logs/apache.helldude.ru.access.log" common
DocumentRoot "/usr/home/phpdude/http/helldude.ru/"
# SuexecUserGroup phpdude phpdude
# ScriptAlias /cgi-bin/ /usr/home/phpdude/http/helldude.ru/cgi-bin/
# <Directory "/usr/home/phpdude/http/helldude.ru/cgi-bin/php.cgi">
# SetHandler fastcgi-script
# Options ExecCGI
# </Directory>
<Directory "/usr/home/phpdude/http/helldude.ru/">
Options -Indexes ExecCGI FollowSymLinks
AllowOverride All
# AddHandler php-fcgi .php
# Action php-fcgi /cgi-bin/php.cgi
AddHandler fcgid-script .php
FCGIWrapper /usr/home/phpdude/http/helldude.ru/cgi-bin/php.cgi .php
Allow from all
</Directory>
</VirtualHost>
Код: Выделить всё
/usr/local/etc/apache22# suexec -V
-D AP_DOC_ROOT="/usr/home"
-D AP_GID_MIN=1000
-D AP_HTTPD_USER="www"
-D AP_LOG_EXEC="/var/log/httpd-suexec.log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=1000
-D AP_USERDIR_SUFFIX="public_html"
Код: Выделить всё
#!/bin/sh
PHP_CGI=/usr/local/bin/php-cgi
PHP_FCGI_CHILDREN=1
PHP_FCGI_MAX_REQUESTS=1000
### no editing below ###
export PHP_FCGI_CHILDREN
export PHP_FCGI_MAX_REQUESTS
export DOC_ROOT
exec $PHP_CGI
Код: Выделить всё
[Sun Sep 13 14:31:42 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/local/sbin/suexec)
[Sun Sep 13 14:31:42 2009] [notice] Apache/2.2.11 (FreeBSD) configured -- resuming normal operations
[Sun Sep 13 14:31:43 2009] [notice] mod_fcgid: call /usr/home/phpdude/http/hell.helldude.ru/index.php with wrapper /usr/home/phpdude/http/hell.helldude.ru/cgi-bin/php.cgi
[Sun Sep 13 14:31:48 2009] [notice] mod_fcgid: call /usr/home/phpdude/http/clear.helldude.ru/wp-admin/index.php with wrapper /usr/home/phpdude/http/clear.helldude.ru/cgi-bin/php.cgi
[Sun Sep 13 14:32:02 2009] [notice] mod_fcgid: call /usr/home/phpdude/http/hell.helldude.ru/wp-admin/load-scripts.php with wrapper /usr/home/phpdude/http/hell.helldude.ru/cgi-bin/php.cgi