Jump to content
Froxlor Forum
  • 0

Problem mit FCGI ... Internal Server Error und blank pages


Shadowkiller

Question

Hoi,

 

ich hab seit 3 Tagen auf einmal folgendes Problem, will ich in Froxlor irgendetwas speichern, bekomme ich irgendwann einen Internal Server Error mit dem Log Hinweis:

mod_fcgid: read data timeout in 40 seconds

[error] [client xxxx] Premature end of script headers: admin_phpsettings.php

 

Dann dacht ich mir, erh?he ich mal die max. Execution Time, doch dann gibt es keinen Fehler mehr, es kommt nach einer gewissen Zeit nur noch eine blank Page?!

 

Ich hoffe jemand von euch kann mir kurz sagen woran es liegen k?nnte, hab im Moment keine Ahnung.

 

Danke.

 

mfg

SK

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

Kommt sofort :)

 

#!/bin/sh

 

PHPRC='/var/www/php-fcgi-scripts/froxlorlocal/'

export PHPRC

PHP_FCGI_CHILDREN=0

export PHP_FCGI_CHILDREN

PHP_FCGI_MAX_REQUESTS=0

export PHP_FCGI_MAX_REQUESTS

exec /usr/bin/php5-cgi -c '/var/www/php-fcgi-scripts/froxlorlocal/'

 

Schaut ja eigentlich ganz normal aus, die Rechte stimmen auch.

Link to comment
Share on other sites

da is z.B. dein php5-cgi, das k?nntest du auf php-cgi ?ndern wenn du m?chtest. Vom ps aux output her w?rde ich fast sagen, es gibt den user 9999 nicht? (bei mir steht da der name des users, wie bei dir auch bei 'alex').

ansonsten auch mal schauen ob auch dein froxlor-ordner dem user 9999 geh?rt (chown -R)

Link to comment
Share on other sites

Habs jetzt mal auf php umge?ndert brachte aber nichts. Zum User 9999 gute Frage warum dieser nicht korrekt angezeigt wird.

 

Er ist auf jeden Fall existent und funktioniert auch, siehe suexec.log

[2010-07-15 22:05:44]: uid: (9999/froxlorlocal) gid: (9999/froxlorlocal) cmd: php-fcgi-starter

 

Im ps aux wird er aber auch nicht korrekt aufgel?st

9999 5219 0.0 0.2 181536 18000 ? S 22:05 0:00 /usr/bin/php-cgi -c /var/www/php-fcgi-scripts/froxlorlocal/

 

Langsam bin ich echt am Ende meines Lateins :)

 

Hier noch der Auszug aus ls -al

:/var/www/php-fcgi-scripts/froxlorlocal# ls -al /var/www/froxlor/

total 22M

drwxr-xr-x 16 froxlorlocal froxlorlocal 4.0K 2010-07-15 19:33 .

drwxr-xr-x 5 root root 4.0K 2010-06-29 12:35 ..

drwxr-xr-x 3 froxlorlocal froxlorlocal 4.0K 2010-06-22 18:26 actions

-rw-r--r-- 1 froxlorlocal froxlorlocal 26K 2010-05-04 08:43 admin_admins.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 1.1K 2010-02-05 09:23 admin_aps.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 5.6K 2010-03-22 13:36 admin_configfiles.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 4.3K 2010-03-26 09:42 admin_cronjobs.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 52K 2010-06-16 14:38 admin_customers.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 48K 2010-05-31 10:28 admin_domains.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 9.5K 2010-05-17 09:01 admin_index.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 13K 2010-01-25 11:06 admin_ipsandports.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 4.2K 2010-01-25 11:06 admin_logger.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 3.7K 2010-02-05 09:23 admin_message.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 6.6K 2010-04-30 07:07 admin_phpsettings.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 6.0K 2010-04-13 07:41 admin_settings.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 13K 2010-01-30 16:52 admin_templates.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 28K 2010-05-02 09:46 admin_tickets.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 3.5K 2010-04-29 08:50 admin_updates.php

drwxr-xr-x 28 froxlorlocal froxlorlocal 4.0K 2009-07-21 14:35 billing

-rw-r--r-- 1 froxlorlocal froxlorlocal 1.3K 2010-04-17 13:46 config.inc.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 1.1K 2010-02-05 09:36 customer_aps.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 8.6K 2010-06-01 07:17 customer_autoresponder.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 22K 2010-05-12 08:52 customer_domains.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 30K 2010-06-02 07:57 customer_email.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 15K 2010-06-24 10:11 customer_extras.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 13K 2010-05-07 08:13 customer_ftp.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 6.9K 2010-01-27 09:54 customer_index.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 12K 2010-06-17 11:21 customer_mysql.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 15K 2010-04-29 07:38 customer_tickets.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 9.2K 2010-04-20 12:58 customer_traffic.php

drwxr-xr-x 2 froxlorlocal froxlorlocal 4.0K 2010-06-28 16:08 images

-rw-r--r-- 1 froxlorlocal froxlorlocal 9.4K 2010-04-14 12:27 index.php

-rw-r--r-- 1 froxlorlocal froxlorlocal 20 2010-07-15 19:33 info.php

drwxr-xr-x 5 froxlorlocal froxlorlocal 4.0K 2010-06-28 16:10 install

drwxr-xr-x 6 froxlorlocal froxlorlocal 4.0K 2010-06-28 16:08 lib

drwxr-xr-x 2 froxlorlocal froxlorlocal 4.0K 2010-06-28 16:08 lng

drwxrwxrwx 106 froxlorlocal froxlorlocal 4.0K 2010-06-29 00:27 packages

drwxr-xr-x 3 froxlorlocal froxlorlocal 4.0K 2010-06-28 16:08 scripts

drwxrwxrwx 2 froxlorlocal froxlorlocal 12K 2010-06-29 00:27 temp

drwxr-xr-x 7 froxlorlocal froxlorlocal 4.0K 2010-06-28 16:08 templates

Link to comment
Share on other sites

Bittesch?n :)

 

<VirtualHost xx:80>

 

ServerName srv01.xx.com

ServerAlias www.srv01.xx.com

ServerAdmin admin@xx.com

DocumentRoot /var/www/froxlor

 

<Directory "/var/www/froxlor">

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

AddHandler fcgid-script .php

Options +FollowSymLinks -MultiViews +ExecCGI

AllowOverride AuthConfig FileInfo

</Directory>

 

SuexecUserGroup froxlorlocal froxlorlocal

ErrorLog /var/log/apache2/froxlor_error.log

LogLevel debug

 

</VirtualHost>

 

Loglevel hab ich mal auf debug gesetzt gehabt, zeigte aber nichts auff?lliges an.

Link to comment
Share on other sites

Also ich bekomme folgende Eintr?ge in die Logs

 

Apache Error Log:

[Thu Jul 15 19:22:38 2010] [notice] mod_fcgid: call /var/www/froxlor/admin_phpsettings.php with wrapper /var/www/php-fcgi-scripts/froxlorlocal/php-fcgi-starter

[Thu Jul 15 19:23:29 2010] [notice] mod_fcgid: process 4046 going graceful shutdown, sending SIGTERM

[Thu Jul 15 19:23:35 2010] [warn] mod_fcgid: process 4046 graceful shutdown timeouted, sending SIGKILL

[Thu Jul 15 19:23:41 2010] [notice] mod_fcgid: process /var/www/froxlor/admin_phpsettings.php(4046) exit(communication error), get stop signal 9

 

Froxlor Error Log

[Thu Jul 15 19:23:25 2010] [warn] mod_fcgid: read data timeout in 40 seconds

[Thu Jul 15 19:23:25 2010] [error] [client xxxx] Premature end of script headers: admin_phpsettings.php, referer: http://xxxx.com/admin_phpsettings.php?page=overview&action=edit&id=1

 

Other VHost Access

xxx:80 xxx - - [15/Jul/2010:19:22:42 +0200] "GET /admin_phpsettings.php?page=overview HTTP/1.1" 200 1865 "http://xxx.com/admin_index.php?quot; "Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6"

xxx:80 xxx - - [15/Jul/2010:19:22:43 +0200] "GET /admin_phpsettings.php?page=overview&action=edit&id=1 HTTP/1.1" 200 3254 "http://xxx/admin_phpsettings.php?page=overview" "Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6"

xxx:80 xxx - - [15/Jul/2010:19:22:45 +0200] "POST /admin_phpsettings.php HTTP/1.1" 500 397 "http://xxx.com/admin_phpsettings.php?page=overview&action=edit&id=1" "Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6"

 

Im SysLog tauchen keine Fehler auf, wo k?nnt ich bei diesem Problem am besten ansetzen?

 

 

Danke.

 

Edit:

 

Ich wei? nicht, ob es etwas damit zu tun haben k?nnte, aber warum ruft er einmal php-cgi und das andere php5-cgi auf, siehe hier per ps faux

www-data 4233 0.0 0.0 118928 2432 ? S 19:40 0:00 \_ /usr/sbin/apache2 -k start

alex 4284 0.0 0.4 189720 38892 ? S 19:48 0:00 | \_ /usr/bin/php-cgi -c /var/www/php-fcgi-scripts/alex/xxx.com/

9999 4294 0.0 0.2 180772 17324 ? S 19:49 0:00 | \_ /usr/bin/php5-cgi -c /var/www/php-fcgi-scripts/froxlorlocal/

 

 

Danke

Link to comment
Share on other sites

Archived

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



×
×
  • Create New...