本页主题: Apache 2.2 mit mod_fcgid unter Debian Etch 打印 | 加为IE收藏 | 复制链接 | 收藏主题 | 上一主题 | 下一主题

admin
级别: 管理员


精华: 1
发帖: 4646
威望: 47 点
金钱: 23190 RMB
贡献值: 0 点
注册时间:2006-10-09
最后登录:2008-11-22

 Apache 2.2 mit mod_fcgid unter Debian Etch

Folgende Situation:
Domain testing.deltateam-cms.info ist auf meinem Windows-Rechner per hosts auf 192.168.0.104 umgebogen (Pingbar).
Der Debian Etch Server hat seinerseits in /etc/hosts einen Eintrag, der die Domain testing.deltateam-cms.info als 127.0.0.1 kennt (Pingbar).
So gesehen komme ich schon mal am richtigen Ende an. Jetzt jedoch weigert sich Apache, die Anfragen korrekt umzuleiten, trotz eigentlich korrekter Einstellungen:
Aktiviert im Apache sind folgende Module: mod_fcgi + suexec
Ordnerstruktur
/home/srv/www/testing/conf (enthält php.ini und das php-fcgi Binary)
/home/srv/www/testing/web (das DocumentRoot des VHosts)
/home/srv/www/php-fcgi-starter/testing/php (FCGI Wrapper)
Relevante Konfigurationsdateien:
/etc/apache2/sites-enabled/testing
Code:

        ServerName      testing.deltateam-cms.info
        ServerAlias    testing.deltateam-cms.info
        ServerAdmin    root@localhost
        DocumentRoot    /home/srv/www/testing/web
        DirectoryIndex  index.php index.html index.htm
        SuexecUserGroup testing users
       
                FCGIWrapper    /home/srv/www/php-fcgi-starter/testing/php .php
                AddHandler      fcgid-script    .php
                Options        +FollowSymLinks -MultiViews +ExecCGI
                AllowOverride  AuthConfig
                Order  allow,deny
                Allow from all
       
        ScriptAlias /cgi-bin/ /home/srv/www/php-fcgi-starter/testing/
       
                AllowOverride  None
                Options        +ExecCGI -MultiViews -Indexes
                Order          allow,deny
                Allow from all
       
        ErrorLog        /var/log/apache2/error.testing.log
        LogLevel        warn
        CustomLog      /var/log/apache2/access.testing.log combined
        ServerSignature On
/home/srv/www/php-fcgi-starter/testing/php
Code:
#!/bin/sh
PHPRC="/home/srv/www/testing/conf"
export PHPRC
PHP_FCGI_CHILDREN=5
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=500
export PHP_FCGI_MAX_REQUESTS
exec /home/srv/www/testing/conf/php-fcgi
Relevanter Logauszug:
/var/log/apache2/error.log
Code:
[Sun Jun 10 17:38:04 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Sun Jun 10 17:38:04 2007] [notice] Apache/2.2.3 (Debian) configured -- resuming normal operations
[Sun Jun 10 17:38:08 2007] [error] [client 192.168.0.12] File does not exist: /htdocs, referer: http://testing.deltateam-cms.info/test.php
[Sun Jun 10 17:38:08 2007] [error] [client 192.168.0.12] File does not exist: /htdocs
Zu bemerken ist, dass die VHost-Konfigurations auf jeden Fall geladen wird, sobald ich dort rumspiele und statt VirtualHost einfach mal VirtualHorst schreibe, haut mir der Indianer einen Fehler um die Ohren.
Die Logfiles werden angelegt (vom VHost), jedoch NICHT beschrieben.
Hat jemand eine Idee, was ich falsch gemacht habe?
Gruß
dtdesign
顶端 Posted: 2007-06-26 01:45 | [楼 主]
帖子浏览记录 版块浏览记录
承德互联 » unix专区

Total 0.857306(s) query 5, Time now is:11-22 13:29, Gzip enabled
Powered by PHPWind v6.3.2 Certificate Code © 2003-08 PHPWind.com Corporation