Jump to content
Froxlor Forum
  • 0

apache und fcgi


campari

Question

Hallo zusammen,

 

ich habe auf meinem debian lenny, die neuste version von froxlor installiert, und m?chte apache mit fcgi einbinden. Alles hat soweit geklappt, doch leider habe ich nun folgende fehlermeldung im error.log file:

 

[Wed Aug 11 00:07:34 2010] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.

[Wed Aug 11 00:07:34 2010] [error] [client xx.xxx.xxx.xxx] Premature end of script headers: index.php

[Wed Aug 11 00:07:37 2010] [notice] mod_fcgid: process /var/www/froxlor_fcgid/index.php(2542) exit(communication error), terminated by calling exit(), return code: 0

 

im suexec.log steht folgendes:

[2010-08-11 00:05:03]: uid: (1001/froxlorlocal) gid: (1001/froxlorlocal) cmd: php-fcgi-starter

[2010-08-11 00:05:04]: uid: (1001/froxlorlocal) gid: (1001/froxlorlocal) cmd: php-fcgi-starter

[2010-08-11 00:07:34]: uid: (1001/froxlorlocal) gid: (1001/froxlorlocal) cmd: php-fcgi-starter

 

Beim Aufruf des Apache bekomme ich nun immer eine 500 Internal Sever Error Message.

 

Kann mir vielleicht jemand sagen, wo mein Fehler sein kann?

 

Danke

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

Alles hat soweit geklappt. Nur schent sich frolor aufzuh?ngen, wenn ich die configs neu schreibe. Er l?dt und l?dt und am ende bekomme ich eine wei?e Seite. Das steht dazu im error.log

 

 

[Wed Aug 11 19:42:10 2010] [notice] Graceful restart requested, doing restart

[Wed Aug 11 19:42:14 2010] [notice] mod_fcgid: process /var/www/froxlor_fcgid/admin_customers.php(6484) exit(shutting down), terminated by calling exit(), return code: 255

[Wed Aug 11 19:42:14 2010] [notice] Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 configured -- resuming normal operations

[Wed Aug 11 19:43:34 2010] [notice] mod_fcgid: call /var/www/froxlor_fcgid/index.php with wrapper /var/www/php-fcgi-scripts/froxlor.panel/php-fcgi-starter

 

 

Warum wird hier froxlor.panel ausgegeben statt: froxlorlocal:

FCGIWrapper /var/www/php-fcgi-scripts/froxlor.panel/php-fcgi-starter .php

 

In der vhost: 10_froxlor_ipandport_XXXX steht:

FCGIWrapper /var/www/php-fcgi-scripts/froxlor.panel/php-fcgi-starter .php

 

lege ich eine neue domain an wird dort folgendes geschrieben;

FCGIWrapper /var/www/php-fcgi-scripts/namedeskunden/domainame/php-fcgi-starter .php

SuexecUserGroup "namedeskunden" "namedeskunde"

 

Nach einem apache restart gibt es dann nat?rlich fehler, da sue SuexecUserGroup ja nur: froxlorlocal erlaubt.

 

Ich bin ratlos, hat jemand eine Idee woran das liegen k?nnte?

Link to comment
Share on other sites

lege ich eine neue domain an wird dort folgendes geschrieben;

FCGIWrapper /var/www/php-fcgi-scripts/namedeskunden/domainame/php-fcgi-starter .php

SuexecUserGroup "namedeskunden" "namedeskunde"

 

Nach einem apache restart gibt es dann nat?rlich fehler, da sue SuexecUserGroup ja nur: froxlorlocal erlaubt.

 

1) welchen Fehler denn?

2) und es ist Schwachsinn, das Apache nur "froxlorlocal" erlaubt...das ist def. nicht der Fall

Link to comment
Share on other sites

Das ist die Fehlermeldung wenn ich einen Kunden anlege:

[Wed Aug 11 21:19:32 2010] [notice] caught SIGTERM, shutting down

[Wed Aug 11 21:19:33 2010] [notice] mod_fcgid: process /var/www/froxlor_fcgid/index.php(10996) exit(shutting down), terminated by calling exit(), return code: 255

[Wed Aug 11 21:19:34 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)

[Wed Aug 11 21:19:34 2010] [notice] Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 configured -- resuming normal operations

[Wed Aug 11 21:19:49 2010] [notice] mod_fcgid: call /var/www/froxlor_fcgid/admin_domains.php with wrapper /var/www/php-fcgi-scripts/froxlorlocal/php-fcgi-starter

 

Die Seite bleigt dannach wei?.

 

Wenn ich dann eine Domain anlege bekomme ich diese Fehlermeldung:

apache2: bad user name testkunde

 

Eine apache restart ist dann nicht m?glich:

r21http:/etc/apache2/sites-enabled# /etc/init.d/apache2 restart

Restarting web server: apache2We failed to correctly shutdown apache, so we're now killing all running apache processes. This is almost certainly suboptimal, so please make sure your system is working as you'd expect now! (warning).

... waiting .apache2: bad user name testkunde

failed!

 

So sieht dannd ie vhost aus:

# 22_froxlor_normal_vhost_testkunde.test.de.conf

# Created 11.08.2010 21:22

# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.

 

# Domain ID: 4 - CustomerID: 6 - CustomerLogin: testkunde

<VirtualHost xx.xxx.xxx.xx:80>

ServerName testkunde.test.de

ServerAlias *.testkunde.test.de

ServerAdmin a.kunde@testder.de

DocumentRoot "/var/customers/webs/testkunde/"

SuexecUserGroup "testkunde" "testkunde"

<Directory "/var/customers/webs/testkunde/">

AddHandler fcgid-script .php

FCGIWrapper /var/www/php-fcgi-scripts/testkunde/testkunde.test.de/php-fcgi-starter .php

Options +ExecCGI

Order allow,deny

allow from all

</Directory>

ErrorLog "/var/customers/logs/testkunde-error.log"

CustomLog "/var/customers/logs/testkunde-access.log" combined

</VirtualHost>

~

Link to comment
Share on other sites

Na wieso ist der starter denn jetzt wieder in /var/www/php-fcgi-scripts/froxlorlocal/, vorhin wars noch /var/www/php-fcgi-scripts/froxlor.panel/.

Bitte hier nicht soviel durcheinander werfen, sonst wirds schwer dir zu helfen

Link to comment
Share on other sites

Das verwirrt mich auch.

Mein setup in 000-default ist:

<VirtualHost *:80>

 

ServerName http.test.com

ServerAdmin webmaster@example.com

# Include /etc/apache2/mods-available/fcgid.conf

 

 

DocumentRoot /var/www

 

<Directory "/var/www">

FCGIWrapper /var/www/php-fcgi-scripts/froxlorlocal/php-fcgi-starter .php

AddHandler fcgid-script .php

Options +FollowSymLinks -MultiViews +ExecCGI

AllowOverride AuthConfig FileInfo

# Order allow,deny

# allow from all

</Directory>

 

SuexecUserGroup froxlorlocal froxlorlocal

 

</VirtualHost>

 

 

Sobald Froxlor die erste Vhost schreibt, schreibt er das:

# 10_froxlor_ipandport_xx.xx.xx.xx.80.conf

# Created 11.08.2010 21:38

# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.

 

NameVirtualHost xx.xx.xx.xx:80

<VirtualHost xx.xx.xxx.xx:80>

DocumentRoot "/var/www/"

ServerName r21http.test.com

SuexecUserGroup "froxlorlocal" "froxlorlocal"

<Directory "/var/www/">

AddHandler fcgid-script .php

FCGIWrapper /var/www/php-fcgi-scripts/froxlor.panel/php-fcgi-starter .php

Options +ExecCGI

Order allow,deny

allow from all

</Directory>

</VirtualHost>

 

Sobald ich eine Domain anlege schreibt er das:

# 22_froxlor_normal_vhost_testkunde.test.de.conf

# Created 11.08.2010 21:38

# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.

 

# Domain ID: 4 - CustomerID: 6 - CustomerLogin: testkunde

<VirtualHost xx.xx.xx.xx:80>

ServerName testkunde.test.de

ServerAlias *.testkunde.test.de

ServerAdmin a.kunde@test.de

DocumentRoot "/var/customers/webs/testkunde/"

SuexecUserGroup "testkunde" "testkunde"

<Directory "/var/customers/webs/testkunde/">

AddHandler fcgid-script .php

FCGIWrapper /var/www/php-fcgi-scripts/testkunde/testkunde.test.de/php-fcgi-starter .php

Options +ExecCGI

Order allow,deny

allow from all

</Directory>

ErrorLog "/var/customers/logs/testkunde-error.log"

CustomLog "/var/customers/logs/testkunde-access.log" combined

</VirtualHost>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...