Hallo,
seit dem Upgrade auf Jessie von Debian 7 Wheezy schmiert mein Apache2 Webserver ständig ab. Ich hoffe, jemand kann mir helfen!
Hier meine Configs...
/etc/apache2/apache2.conf
/etc/apache2/mods-available/mpm_prefork.conf
Auf meinem Server läuft ein Forum mit ca. 10000 Unique Benutzern pro Tag.
/etc/mysql/my.cnf
free -m
Und hier der apache error.log von gestern
Wenn ich Apache neu starte, läuft es wieder einige Zeit bis es dann irgendwann wieder zum Crash kommt.
Weiß jemand was man da noch machen kann? Habe schon viel an den Configs geändert aber das Problem besteht weiterhin.
MfG
seit dem Upgrade auf Jessie von Debian 7 Wheezy schmiert mein Apache2 Webserver ständig ab. Ich hoffe, jemand kann mir helfen!
Hier meine Configs...
/etc/apache2/apache2.conf
Code:
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://ift.tt/1of39Hv for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
# default Apache2 installation attempts to make adding and removing modules,
# virtual hosts, and extra configuration directives as flexible as possible, in
# order to make automating the changes and administering the server as easy as
# possible.
# It is split into several files forming the configuration hierarchy outlined
# below, all located in the /etc/apache2/ directory:
#
# /etc/apache2/
# |-- apache2.conf
# | `-- ports.conf
# |-- mods-enabled
# | |-- *.load
# | `-- *.conf
# |-- conf-enabled
# | `-- *.conf
# `-- sites-enabled
# `-- *.conf
#
#
# * apache2.conf is the main configuration file (this file). It puts the pieces
# together by including all remaining configuration files when starting up the
# web server.
#
# * ports.conf is always included from the main configuration file. It is
# supposed to determine listening ports for incoming connections which can be
# customized anytime.
#
# * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
# directories contain particular configuration snippets which manage modules,
# global configuration fragments, or virtual host configurations,
# respectively.
#
# They are activated by symlinking available configuration files from their
# respective *-available/ counterparts. These should be managed by using our
# helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See
# their respective man pages for detailed information.
#
# * The binary is called apache2. Due to the use of environment variables, in
# the default configuration, apache2 needs to be started/stopped with
# /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
# work with the default configuration.
# Global configuration
#
#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE! If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the Mutex documentation (available
# at <URL:http://ift.tt/1spJfuw;);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
#ServerRoot "/etc/apache2"
#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
Mutex file:${APACHE_LOCK_DIR} default
#
# PidFile: The file in which the server should record its process
# identification number when it starts.
# This needs to be set in /etc/apache2/envvars
#
PidFile ${APACHE_PID_FILE}
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300
#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On
#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100
#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 5
# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog ${APACHE_LOG_DIR}/error.log
#
# LogLevel: Control the severity of messages logged to the error_log.
# Available values: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the log level for particular modules, e.g.
# "LogLevel info ssl:warn"
#
LogLevel warn
# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
# Include list of ports to listen on
Include ports.conf
# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
#<Directory /srv/>
# Options Indexes FollowSymLinks
# AllowOverride None
# Require all granted
#</Directory>
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives. See also the AllowOverride
# directive.
#
AccessFileName .htaccess
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>
#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# These deviate from the Common Log Format definitions in that they use %O
# (the actual bytes sent including headers) instead of %b (the size of the
# requested file), because the latter makes it impossible to detect partial
# requests.
#
# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
# Use mod_remoteip instead.
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.
# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf
# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
ServerSignature Off
ServerTokens ProductOnly
Code:
<IfModule mpm_prefork_module>
StartServers 3
MinSpareServers 50
MaxSpareServers 200
MaxRequestWorkers 1000
MaxConnectionsPerChild 10000
</IfModule>
/etc/mysql/my.cnf
Code:
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://ift.tt/1l3nI6x
# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
# Here is entries for some specific programs
# The following values assume you have at least 32M ram
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
[mysqld]
#
# * Basic Settings
#
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
skip-external-locking
innodb_flush_log_at_trx_commit = 2
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 127.0.0.1
#
# * Fine Tuning
#
key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover = BACKUP
#max_connections = 100
#table_cache = 64
#thread_concurrency = 10
#
# * Query Cache Configuration
#
query_cache_limit = 1M
query_cache_size = 16M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file = /var/log/mysql/mysql.log
#general_log = 1
#
# Error log - should be very few entries.
#
log_error = /var/log/mysql/error.log
#
# Here you can see queries with especially long duration
#slow_query_log_file = /var/log/mysql/mysql-slow.log
#slow_query_log = 1
#long_query_time = 2
#log_queries_not_using_indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
# other settings you may need to change.
#server-id = 1
#log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 10
max_binlog_size = 100M
#binlog_do_db = include_database_name
#binlog_ignore_db = include_database_name
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
[mysql]
#no-auto-rehash # faster start of mysql but no tab completition
[isamchk]
key_buffer = 16M
#
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/
Code:
total used free shared buffers cached
Mem: 16028 3467 12560 20 127 2531
-/+ buffers/cache: 808 15219
Swap: 9302 0 9302
Code:
[Fri Oct 23 03:59:26 2015] [notice] i-MSCP Vlogger: caught TERM, shutting down
[Fri Oct 23 05:59:28.304865 2015] [mpm_worker:notice] [pid 12696:tid 140435240585088] AH00295: caught SIGTERM, shutting down
[Fri Oct 23 05:59:53.967753 2015] [suexec:notice] [pid 817:tid 140063518668672] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Fri Oct 23 05:59:53.983180 2015] [mpm_worker:notice] [pid 925:tid 140063518668672] AH00292: Apache/2.4.10 (Debian) mod_fcgid/2.3.9 OpenSSL/1.0.1k configured -- resuming normal operations
[Fri Oct 23 05:59:53.983210 2015] [core:notice] [pid 925:tid 140063518668672] AH00094: Command line: '/usr/sbin/apache2'
[Fri Oct 23 05:59:54 2015] [alert] i-MSCP Vlogger: unable to connect to MySQL server: Can't connect to MySQL server on '127.0.0.1' (111)
[Fri Oct 23 05:59:54 2015] [alert] i-MSCP Vlogger: Tracker feature turned off
[Fri Oct 23 03:59:54 2015] [notice] i-MSCP Vlogger: started CustomLog Handler -- resuming normal operations
[Fri Oct 23 09:03:08.171978 2015] [mpm_worker:notice] [pid 925:tid 140063518668672] AH00295: caught SIGTERM, shutting down
[Fri Oct 23 07:03:08 2015] [notice] i-MSCP Vlogger: caught TERM, shutting down
[Fri Oct 23 09:03:34.732161 2015] [suexec:notice] [pid 889:tid 139884572088192] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Fri Oct 23 09:03:34.748223 2015] [mpm_worker:notice] [pid 987:tid 139884572088192] AH00292: Apache/2.4.10 (Debian) mod_fcgid/2.3.9 OpenSSL/1.0.1k configured -- resuming normal operations
[Fri Oct 23 09:03:34.748259 2015] [core:notice] [pid 987:tid 139884572088192] AH00094: Command line: '/usr/sbin/apache2'
[Fri Oct 23 09:03:34 2015] [alert] i-MSCP Vlogger: unable to connect to MySQL server: Can't connect to MySQL server on '127.0.0.1' (111)
[Fri Oct 23 09:03:34 2015] [alert] i-MSCP Vlogger: Tracker feature turned off
[Fri Oct 23 07:03:34 2015] [notice] i-MSCP Vlogger: started CustomLog Handler -- resuming normal operations
[Fri Oct 23 09:20:12.350866 2015] [mpm_worker:notice] [pid 987:tid 139884572088192] AH00295: caught SIGTERM, shutting down
[Fri Oct 23 07:20:12 2015] [notice] i-MSCP Vlogger: caught TERM, shutting down
[Fri Oct 23 09:20:13.433441 2015] [suexec:notice] [pid 2328:tid 140459038934912] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Fri Oct 23 09:20:13.448823 2015] [mpm_worker:notice] [pid 2330:tid 140459038934912] AH00292: Apache/2.4.10 (Debian) mod_fcgid/2.3.9 OpenSSL/1.0.1k configured -- resuming normal operations
[Fri Oct 23 09:20:13.448851 2015] [core:notice] [pid 2330:tid 140459038934912] AH00094: Command line: '/usr/sbin/apache2'
[Fri Oct 23 07:20:13 2015] [notice] i-MSCP Vlogger: started CustomLog Handler -- resuming normal operations
[Fri Oct 23 07:46:37 2015] [notice] i-MSCP Vlogger: caught TERM, shutting down
[Fri Oct 23 09:46:38.970478 2015] [mpm_worker:notice] [pid 2330:tid 140459038934912] AH00295: caught SIGTERM, shutting down
[Fri Oct 23 09:47:03.778249 2015] [suexec:notice] [pid 950:tid 140211269642112] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Fri Oct 23 09:47:03.792104 2015] [mpm_worker:notice] [pid 1047:tid 140211269642112] AH00292: Apache/2.4.10 (Debian) mod_fcgid/2.3.9 OpenSSL/1.0.1k configured -- resuming normal operations
[Fri Oct 23 09:47:03.792138 2015] [core:notice] [pid 1047:tid 140211269642112] AH00094: Command line: '/usr/sbin/apache2'
[Fri Oct 23 09:47:03 2015] [alert] i-MSCP Vlogger: unable to connect to MySQL server: Can't connect to MySQL server on '127.0.0.1' (111)
[Fri Oct 23 09:47:03 2015] [alert] i-MSCP Vlogger: Tracker feature turned off
[Fri Oct 23 07:47:03 2015] [notice] i-MSCP Vlogger: started CustomLog Handler -- resuming normal operations
[Fri Oct 23 09:54:55.683943 2015] [cgid:error] [pid 1076:tid 140210985711360] [client 115.230.124.164:1144] AH01264: script not found or unable to stat: /usr/lib/cgi-bin/common
[Fri Oct 23 12:06:19.290380 2015] [mpm_worker:error] [pid 1047:tid 140211269642112] AH00287: server is within MinSpareThreads of MaxRequestWorkers, consider raising the MaxRequestWorkers setting
[Fri Oct 23 12:23:47.881076 2015] [core:error] [pid 17333:tid 140211019282176] [client 188.138.9.50:50886] AH00135: Invalid method in request quit
[Fri Oct 23 14:47:51.799242 2015] [cgid:error] [pid 19176:tid 140211027674880] [client 115.239.248.245:2152] AH01264: script not found or unable to stat: /usr/lib/cgi-bin/common
[Fri Oct 23 18:13:06.612299 2015] [mpm_worker:error] [pid 1047:tid 140211269642112] AH00286: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
[Fri Oct 23 16:36:51 2015] [notice] i-MSCP Vlogger: caught TERM, shutting down
[Fri Oct 23 18:37:01.128165 2015] [core:error] [pid 1047:tid 140211269642112] AH00046: child process 23236 still did not exit, sending a SIGKILL
[Fri Oct 23 18:37:01.128230 2015] [core:error] [pid 1047:tid 140211269642112] AH00046: child process 23279 still did not exit, sending a SIGKILL
[Fri Oct 23 18:37:01.128292 2015] [core:error] [pid 1047:tid 140211269642112] AH00046: child process 23078 still did not exit, sending a SIGKILL
[Fri Oct 23 18:37:01.128338 2015] [core:error] [pid 1047:tid 140211269642112] AH00046: child process 23177 still did not exit, sending a SIGKILL
[Fri Oct 23 18:37:02.129507 2015] [mpm_worker:notice] [pid 1047:tid 140211269642112] AH00295: caught SIGTERM, shutting down
[Fri Oct 23 18:37:02.887227 2015] [suexec:notice] [pid 23453:tid 140545000359808] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Fri Oct 23 18:37:02.903066 2015] [mpm_worker:notice] [pid 23455:tid 140545000359808] AH00292: Apache/2.4.10 (Debian) mod_fcgid/2.3.9 OpenSSL/1.0.1k configured -- resuming normal operations
[Fri Oct 23 18:37:02.903102 2015] [core:notice] [pid 23455:tid 140545000359808] AH00094: Command line: '/usr/sbin/apache2'
[Fri Oct 23 16:37:02 2015] [notice] i-MSCP Vlogger: started CustomLog Handler -- resuming normal operations
[Fri Oct 23 18:37:42.945716 2015] [mpm_worker:error] [pid 23455:tid 140545000359808] AH00287: server is within MinSpareThreads of MaxRequestWorkers, consider raising the MaxRequestWorkers setting
[Fri Oct 23 18:37:43.946809 2015] [mpm_worker:error] [pid 23455:tid 140545000359808] AH00286: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
[Fri Oct 23 16:47:29 2015] [notice] i-MSCP Vlogger: caught TERM, shutting down
[Fri Oct 23 18:47:31.252094 2015] [mpm_worker:notice] [pid 23455:tid 140545000359808] AH00295: caught SIGTERM, shutting down
[Fri Oct 23 18:47:32.010576 2015] [suexec:notice] [pid 23888:tid 140330156337024] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
Weiß jemand was man da noch machen kann? Habe schon viel an den Configs geändert aber das Problem besteht weiterhin.
MfG
Aucun commentaire:
Enregistrer un commentaire