Current time: 11-15-2024, 06:54 AM Hello There, Guest! (LoginRegister)


Post Reply 
Error 500 Problem
Author Message
brainslush Offline
Newbie
*

Posts: 8
Joined: Feb 2010
Reputation: 0
Post: #1
Error 500 Problem
Hey,
ich habe ein Problem, denn ich bekomme sehr häufig Error 500 Meldungen. Im Allgemeinen ist mir schon aufgefallen, dass mein Server sehr lange für Anfragen braucht. Allerdings bezieht sich das nur auf Seiten, die auf PHP-Scripte zurück greifen. Reine HTML-Seiten lädt er ohne verzögerungen.
Ressourcen probleme sollte es keine geben, zumindest werden im control panel keine angezeigt und auch "top" zeigt eine recht moderate last von max 8% cpu und ram an.
Nutze Debian Lenny, apache2, php5, fcgid,

Wenn error 500 gemeldet wird bekomme ich folgendes in der error-log:

Code:
[Mon Feb 22 23:00:34 2010] [notice] mod_fcgid: process /var/www/virtual/my.domain/htdocs/index.php(8189) exit(communication error), terminated by calling exit(), return code: 0

Muss ich jetzt davon ausgehen, dass es irgendein Problem mit mySQL gibt oder das meine config of fcgid nicht stimmt?

fcgid.conf
Code:
<IfModule mod_fcgid.c>
  AddHandler fcgid-script .php .php5
  SocketPath /var/lib/apache2/fcgid/sock
  IdleTimeout 600
  IdleScanInterval 120
  BusyTimeout 300
  BusyScanInterval 120
  ErrorScanInterval 3
  ZombieScanInterval 3
  ProcessLifeTime 900
  SpawnScoreUpLimit 10
  SpawnScore 1
  TerminationScore 2
  MaxProcessCount 200
  DefaultMaxClassProcessCount 10
  DefaultMinClassProcessCount 1
  IPCConnectTimeout 900
  IPCCommTimeout 900
  MaxRequestsPerProcess 500
</IfModule>

Code:
# ispCP ω (OMEGA) a Virtual Hosting Control Panel
# Copyright (C) 2006-2009 by isp Control Panel - http://ispcp.net
#
# Version: $Id: ispcp.conf 2443 2009-12-23 18:12:34Z nuxwin $
#
# The contents of this file are subject to the Mozilla Public License
# Version 1.1 (the "License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
# License for the specific language governing rights and limitations
# under the License.
#
# The Original Code is "ispCP ω (OMEGA) a Virtual Hosting Control Panel".
#
# The Initial Developer of the Original Code is ispCP Team.
# Portions created by Initial Developer are Copyright (C) 2006-2009 by
# isp Control Panel. All Rights Reserved.
#
# The ispCP ω Home Page is:
#
#    http://isp-control.net
#

#
# Misc config variables
#

BuildDate = 20091224

Version = 1.0.3 OMEGA

CodeName = Priamos

DEFAULT_ADMIN_ADDRESS = host@domain.de

SERVER_HOSTNAME = vps.de

BASE_SERVER_IP = 000.000.000.000

BASE_SERVER_VHOST = vps.de

BASE_SERVER_VHOST_PREFIX = http://

MR_LOCK_FILE = /var/run/ispcp.lock

#
# File system variables
#

CMD_AWK = /usr/bin/awk

CMD_BZCAT = /bin/bzcat

CMD_BZIP = /bin/bzip2

CMD_CHOWN = /bin/chown

CMD_CAT = /bin/cat

CMD_CHMOD = /bin/chmod

CMD_CP = /bin/cp

CMD_DIFF = /usr/bin/diff

CMD_CMP = /usr/bin/cmp

CMD_DU = /usr/bin/du

CMD_ECHO = /bin/echo

CMD_EGREP = /bin/egrep

CMD_GZCAT = /bin/zcat

CMD_GZIP = /bin/gzip

CMD_GREP = /bin/grep

CMD_GROUPADD = /usr/sbin/groupadd

CMD_GROUPDEL = /usr/sbin/groupdel

CMD_HOSTNAME = /bin/hostname

CMD_IFCONFIG = /sbin/ifconfig

CMD_IPTABLES = /sbin/iptables

CMD_LN = /bin/ln

CMD_LZMA = /usr/bin/lzma

CMD_MYSQL = /usr/bin/mysql

CMD_MV = /bin/mv

CMD_PHP = /usr/bin/php5

CMD_PS = /bin/ps

CMD_RM = /bin/rm

CMD_SED = /bin/sed

CMD_SHELL = /bin/bash

CMD_TAR = /bin/tar

CMD_TOUCH = /usr/bin/touch

CMD_USERADD = /usr/sbin/useradd

CMD_USERDEL = /usr/sbin/userdel

CMD_WC = /usr/bin/wc

PEAR_DIR = /usr/share/php

#
# SQL backend variables
#

# Don't change this one
DATABASE_TYPE = mysql

DATABASE_HOST = localhost

DATABASE_NAME = ispcp

DATABASE_PASSWORD = …….

DATABASE_USER = root

DATABASE_DIR = /var/lib/mysql

CMD_MYSQLDUMP = /usr/bin/mysqldump

DATABASE_UTF8 = yes

#
# Main variables
#

CONF_DIR = /etc/ispcp

LOG_DIR = /var/log/ispcp

PHP_STARTER_DIR = /var/www/fcgi

ROOT_DIR = /var/www/ispcp

ROOT_USER = root

ROOT_GROUP = root

GUI_ROOT_DIR = /var/www/ispcp/gui

APACHE_WWW_DIR = /var/www/virtual

SCOREBOARDS_DIR = /var/www/scoreboards

# Select Zipping Algorithm for Backups
# Make sure the selected Algorithm is installed
# Supported: gzip, bzip2, lzma, xz
ZIP = bzip2

#
# PHP FastCGI data
#

# Posible values: fcgid, fastcgi
PHP_FASTCGI = fcgid

PHP5_FASTCGI_BIN = /usr/bin/php5-cgi

PHP_VERSION = 5

#
# ProFTPd data
#

FTPD_CONF_FILE = /etc/proftpd/proftpd.conf

FTPD_CONF_DIR = /etc/proftpd/ispcp

#
# BIND data
#

BIND_CONF_FILE = /etc/bind/named.conf

BIND_DB_DIR = /var/cache/bind

SECONDARY_DNS =

#
# AWSTATS data
#

AWSTATS_ACTIVE = yes

# could be 'dynamic' = 0 or 'static' = 1
AWSTATS_MODE = 0

AWSTATS_CACHE_DIR = /var/cache/awstats

AWSTATS_CONFIG_DIR = /etc/awstats

AWSTATS_ENGINE_DIR = /usr/lib/cgi-bin

AWSTATS_WEB_DIR = /usr/share/awstats

AWSTATS_ROOT_DIR = /var/www/ispcp/engine/awstats

AWSTATS_GROUP_AUTH = statistics

#
# APACHE data
#

APACHE_NAME = apache2

APACHE_RESTART_TRY = 3

APACHE_CONF_DIR = /etc/apache2

APACHE_CMD = /usr/sbin/apache2

APACHE_LOG_DIR = /var/log/apache2

APACHE_BACKUP_LOG_DIR = /var/log/apache2/backup

APACHE_USERS_LOG_DIR = /var/log/apache2/users

APACHE_MODS_DIR = /etc/apache2/mods-available

APACHE_SITES_DIR = /etc/apache2/sites-available

APACHE_CUSTOM_SITES_CONFIG_DIR = /etc/apache2/ispcp

APACHE_SUEXEC_USER_PREF = vu

APACHE_SUEXEC_MIN_GID = 2000

APACHE_SUEXEC_MAX_GID = 29999

APACHE_SUEXEC_MIN_UID = 2000

APACHE_SUEXEC_MAX_UID = 29999

APACHE_USER = www-data

APACHE_GROUP = www-data

#
# Postfix MTA Data
#

POSTFIX_CONF_FILE = /etc/postfix/main.cf

POSTFIX_MASTER_CONF_FILE = /etc/postfix/master.cf

MTA_LOCAL_MAIL_DIR = /var/mail

MTA_VIRTUAL_MAIL_DIR = /var/mail/virtual

MTA_LOCAL_ALIAS_HASH = /etc/aliases

MTA_VIRTUAL_CONF_DIR = /etc/postfix/ispcp

MTA_VIRTUAL_ALIAS_HASH = /etc/postfix/ispcp/aliases

MTA_VIRTUAL_DMN_HASH = /etc/postfix/ispcp/domains

MTA_VIRTUAL_MAILBOX_HASH = /etc/postfix/ispcp/mailboxes

MTA_TRANSPORT_HASH = /etc/postfix/ispcp/transport

MTA_SENDER_ACCESS_HASH = /etc/postfix/ispcp/sender-access

MTA_MAILBOX_MIN_UID = 1000

MTA_MAILBOX_UID = 1000

MTA_MAILBOX_UID_NAME = vmail

MTA_MAILBOX_GID = 8

MTA_MAILBOX_GID_NAME = mail

MTA_SASLDB_FILE = /var/spool/postfix/etc/sasldb2

ETC_SASLDB_FILE = /etc/sasldb2

CMD_SASLDB_LISTUSERS2 = /usr/sbin/sasldblistusers2

CMD_SASLDB_PASSWD2 = /usr/sbin/saslpasswd2

CMD_POSTMAP = /usr/sbin/postmap

CMD_NEWALIASES = /usr/bin/newaliases

#
# Courier data
#

AUTHLIB_CONF_DIR = /etc/courier

CMD_MAKEUSERDB = /usr/sbin/makeuserdb

#
# Crontab delayed tasks
#

BACKUP_HOUR = 23

BACKUP_MINUTE = 40

BACKUP_ISPCP = yes

BACKUP_DOMAINS = yes

BACKUP_ROOT_DIR = /var/www/ispcp/engine/backup

CMD_CRONTAB = /usr/bin/crontab

#
# Service manager
#

# Either no or path to the amavis-daemon (usually: /etc/init.d/amavis)
CMD_AMAVIS = no

CMD_AUTHD = /etc/init.d/courier-authdaemon

CMD_FTPD = /etc/init.d/proftpd

CMD_HTTPD = /usr/sbin/apache2ctl

CMD_IMAP = /etc/init.d/courier-imap

CMD_IMAP_SSL = /etc/init.d/courier-imap-ssl

CMD_MTA = /etc/init.d/postfix

CMD_NAMED = /etc/init.d/bind9

CMD_POP = /etc/init.d/courier-pop

CMD_POP_SSL = /etc/init.d/courier-pop-ssl

CMD_ISPCPD = /etc/init.d/ispcp_daemon

CMD_ISPCPN = /etc/init.d/ispcp_network

#
# Virtual traffic manager
#

CMD_PFLOGSUM = /usr/sbin/maillogconvert.pl

TRAFF_LOG_DIR = /var/log

FTP_TRAFF_LOG = /proftpd/ftp_traff.log

MAIL_TRAFF_LOG = mail.log

TRAFF_ROOT_DIR = /var/www/ispcp/engine/traffic

TOOLS_ROOT_DIR = /var/www/ispcp/engine/tools

QUOTA_ROOT_DIR = /var/www/ispcp/engine/quota

#
# AMaViS data
#

MAIL_LOG_INC_AMAVIS = 0

#
# GUI config
#

USER_INITIAL_THEME = omega_original

FTP_USERNAME_SEPARATOR = @

FTP_HOMEDIR = /var/www/virtual

IPS_LOGO_PATH = ../themes/user_logos

ISPCP_SUPPORT_SYSTEM_PATH = ticket_system.php

ISPCP_SUPPORT_SYSTEM_TARGET =

MYSQL_PREFIX = no

# '' for MYSQL_PREFIX = no,
# 'infront' or 'behind' for MYSQL_PREFIX = yes
MYSQL_PREFIX_TYPE =

WEBMAIL_PATH = ../tools/webmail/

WEBMAIL_TARGET = _blank

# Please, do not change it manually
# This entry is used for the update/recovery process
PMA_USER = pma

PMA_PATH = ../tools/pma/

PMA_TARGET = _blank

FILEMANAGER_PATH = ../tools/filemanager/

FILEMANAGER_TARGET = _blank

DATE_FORMAT = d.m.Y

RKHUNTER_LOG = /var/log/rkhunter.log

CHKROOTKIT_LOG = /var/log/chkrootkit.log

# Here you can set an additional anti-rootkit tool log file
OTHER_ROOTKIT_LOG =

#
# htaccess management
#

HTACCESS_USERS_FILE_NAME = .htpasswd

HTACCESS_GROUPS_FILE_NAME = .htgroup

HTPASSWD_CMD = /usr/bin/htpasswd2

#
# backup management
#

BACKUP_FILE_DIR = /var/www/ispcp/backups

#
# Debug Mode (e.g. for developers)
# options: 0 = off, 1 = on
#

DEBUG = 0

# Scheint ein allgemeines Problem von Debian Lenny zu sein, da ich auch viele ählich beiträge ohn Lösung gefunden habe. Ich werde wahrscheinlich erstmal auf fastcgi wechseln und sehen, was passiert
(This post was last modified: 02-23-2010 09:54 AM by brainslush.)
02-23-2010 08:33 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: Error 500 Problem
Quote:Ressourcen probleme sollte es keine geben, zumindest werden im control panel keine angezeigt und auch "top" zeigt eine recht moderate last von max 8% cpu und ram an.
Was hast Du denn für einen Server ? Eckdaten ?
8% CPU haben eigentlich garnichts zu sagen.
Quote:Scheint ein allgemeines Problem von Debian Lenny zu sein
Meine und viele andere Server laufen auch unter Debian Lenny, ohne Probleme.

Hast Du Apache prefork oder worker ?

Greez BeNe
02-23-2010 04:58 PM
Visit this user's website Find all posts by this user Quote this message in a reply
brainslush Offline
Newbie
*

Posts: 8
Joined: Feb 2010
Reputation: 0
Post: #3
RE: Error 500 Problem
Quote:Was hast Du denn für einen Server ? Eckdaten ?

Ich hab leider nur einen VServer, aber da ich dadrauf nur zwei, drei Websiten mit moderaten Zugriff (ca. 200 Zugriffe pro Tag) hoste, sollte das meiner Ansincht kein Problem sein. Abgesehen davon, hatte ich vorher die Verwaltungs Oberfläche von Parallels installiert und dort lief alles super. Ich habe mich dann aber entschieden aufgrund von persönlichen Einstellungen auf ein GPL-Project umzusteigen.

Was ich an Eckdaten geben kann:
Memory: Softlimit: 384Mb Hardlimit: 1024Mb
CPU: 384MHz zugesichert, Number of CPUs: unlimited (Das kann alles heißen..., Allerdings hat mein provider vor zwei Monaten eine Mail rumgeschickt, dass alle VServer auf neuere und leistungsfähigere Server umgezogen sind.)

Quote:Hast Du Apache prefork oder worker ?

Code:
# apache2 -l
Compiled in modules:
  core.c
  mod_log_config.c
  mod_logio.c
  worker.c
  http_core.c
  mod_so.c

Worker!
02-23-2010 09:48 PM
Find all posts by this user Quote this message in a reply
brainslush Offline
Newbie
*

Posts: 8
Joined: Feb 2010
Reputation: 0
Post: #4
RE: Error 500 Problem
kann mir niemand helfen? Würde mich sehr freuen.
Danke
02-24-2010 05:59 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)