mod_suphp
Добавлено: 2009-08-19 18:11:07
Приветствую!
Собрал Apache2 с mod_suphp. Конфиги:
Suphp:
Апача.. кусками:
Настройка виртуалхоста:
При попытке образения к сайту в логе пишет:
Что я делаю не правильно ? Заранее благодарен за ответы.
Собрал Apache2 с mod_suphp. Конфиги:
Suphp:
Код: Выделить всё
[global]
;Path to logfile
logfile=/var/log/suphp.log
;Loglevel
loglevel=info
;User Apache is running as
webserver_user=www
;Path all scripts have to be in
docroot=/usr/local/apache/www/*
;${HOME}/public_html
;Path to chroot() to before executing script
;chroot=/mychroot
; Security options
allow_file_group_writeable=true
allow_file_others_writeable=false
allow_directory_group_writeable=true
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=80
; Minimum GID
min_gid=80
[handlers]
;Handler for php-scripts
application/x-httpd-php=php:/usr/local/bin/php-cgi
;Handler for CGI-scripts
x-suphp-cgi=execute:!self
Код: Выделить всё
....
LoadModule php5_module libexec/apache2/libphp5.so
LoadModule suphp_module libexec/apache2/mod_suphp.so
....
User www
Group www
....
DocumentRoot "/usr/local/apache/www"
<Directory "/usr/local/apache/www">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
.....
Код: Выделить всё
<VirtualHost xx.xx.xx.xx:80>
ServerName www.test.ru
ServerAlias test.ru
ServerAdmin noc@test.ru
suPHP_Engine on
AddType application/x-httpd-php .php
suPHP_AddHandler application/x-httpd-php
DirectoryIndex index.php index.php3 index.html index.htm
DocumentRoot /usr/local/apache/www/test/
<Directory "/usr/local/apache/www/test/">
Options Indexes FollowSymLinks IncludesNoExec MultiViews ExecCGI
AllowOverride AuthConfig FileInfo Indexes Options
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/httpd/test-error_log
CustomLog /var/log/httpd/test-access_log common
</VirtualHost>
Код: Выделить всё
[Wed Aug 19 19:57:14 2009] [warn] Script "/usr/local/apache/www/еуые/index.php" resolving to "/usr/local/apache/www/test/index.php" not within configured docroot