PDA

Bekijk Volledige Versie : Apache server 2.0.50 niet stabiel



StefanK
24/03/05, 00:48
Hallo allemaal...

Ik heb een site on-line staan en host die zelf op een apache server onder win2000. (www.bluesdvd.nl) Alles draait in principe okee op 1 puntje na.

Wanneer je de assortimentpagina aanklikt met daarop diverse thumbs en je gaat deze vervolgens bekijken dan zegt apache na ong 25 kliks, 'doe het zelf maar', en kan ik de server herstarten.
Vervolgens draait het geheel weer als een tierelier.

Iemand enig idee wat er fout zit?

In mijn logfiles is niets te vinden.

Please help!!!????


Hieronder de eerste sectie van mijn httpd.conf
Een allen alvast bedankt!


Sectie 1:

#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs-2.0/> for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
#
# The configuration directives are grouped into three basic sections:
# 1. Directives that control the operation of the Apache server process as a
# whole (the 'global environment').
# 2. Directives that define the parameters of the 'main' or 'default' server,
# which responds to requests that aren't handled by a virtual host.
# These directives also provide default values for the settings
# of all virtual hosts.
# 3. Settings for virtual hosts, which allow Web requests to be sent to
# different IP addresses or hostnames and have them handled by the
# same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path. If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "C:/Webserver/Apache2" will be interpreted by the
# server as "C:/Webserver/Apache2/logs/foo.log".
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which Apache.exe is located
# will be used by default. It is recommended that you always supply
# an explicit drive letter in absolute paths, however, to avoid
# confusion.
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# 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 LockFile documentation (available
# at <URL:http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "C:/Webserver/Apache2"

#
# ScoreBoardFile: File used to store internal server process information.
# If unspecified (the default), the scoreboard will be stored in an
# anonymous shared memory segment, and will be unavailable to third-party
# applications.
# If specified, ensure that no two invocations of Apache share the same
# scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.
#
ScoreBoardFile logs/apache_runtime_status

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
#
PidFile logs/httpd.pid

#
# 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 500

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 120

##
## Server-Pool Size Regulation (MPM specific)
##

# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_winnt.c>
ThreadsPerChild 50
MaxRequestsPerChild 0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule access_module modules/mod_access.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_module modules/mod_auth.so
#LoadModule auth_anon_module modules/mod_auth_anon.so
#LoadModule auth_dbm_module modules/mod_auth_dbm.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule headers_module modules/mod_headers.so
LoadModule imap_module modules/mod_imap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so
LoadModule php4_module C:/Webserver/php/sapi/php4apache2.dll
#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On

dotnetjunkie
24/03/05, 01:57
Gaat het om een Windows 2000 server?
Zoja, dan kan je veel beter IIS gebruiken, die zit nl. standaard meegeleverd en zal heel wat betere performantie en stabiliteit bieden dan apache. Voor het beste resultaat zou je echter een upgrade naar windows 2003 moeten overwegen.

dreamhost_nl
24/03/05, 07:26
Origineel geplaatst door dotnetjunkie
Gaat het om een Windows 2000 server?
Zoja, dan kan je veel beter IIS gebruiken, die zit nl. standaard meegeleverd en zal heel wat betere performantie en stabiliteit bieden dan apache. Voor het beste resultaat zou je echter een upgrade naar windows 2003 moeten overwegen.

Dat is natuurlijk overdreven. Bij één van onze opdrachtgevers draait ook Windows 2000 Server in combinatie met Apache (let wel met 1.3.x). IIS mag dan met Windows meegeleverd worden, dan wil dat nog niet zeggen dat het stabieler draait. Wordt geen gebruik gemaakt van ASP dan zou ik toch voor Apache kiezen als web server... Ik denk persoonlijk niet dat het aan Apache ligt... misschien een module die niet helemaal lekker werkt ?

Triloxigen
24/03/05, 09:15
Je site is offline, dit is jammer want aan de hand van die website is het iets makkelijker te bepalen...

StefanK
24/03/05, 10:13
Hoi Triligen,

Hij is on-line hoor!

Greetz

StefanK
24/03/05, 10:17
Knalde er weer uit...

mguilmot
24/03/05, 10:25
En nu weer? ;)

StefanK
24/03/05, 10:25
He Triloxigen...

Het gaat me opvallen dat mijn webserver crasht als mijn counter een ip registreerd. Bezoekers van zeelandnet geeft geen problemen???

1 24 maart 10:20:54 Tiscali DSL, Nederland
2 24 maart 10:19:12 Zeelandnet, Nederland
3 24 maart 10:17:26 Zeelandnet, Nederland
4 24 maart 10:14:36 82-192-91-37.dsl.gs-internet.nl (Hier dus)
5 24 maart 10:12:21 Zeelandnet, Nederland
6 24 maart 10:10:46 Wanadoo Internet, Nederland
7 24 maart 10:06:16 Zeelandnet, Nederland
8 24 maart 09:51:15 Zeelandnet, Nederland
9 24 maart 09:36:14 Zeelandnet, Nederland
10 24 maart 09:13:46 XS4All Internet, Nederland

StefanK
24/03/05, 10:26
1 24 maart 10:20:54 Tiscali DSL, Nederland

Op deze ook...

StefanK
24/03/05, 10:32
Zal ik mijn hele httpd.conf hier even opzetten???

TSG-Hans
24/03/05, 10:40
apache2 threaded in combinatie met php is vragen om moeilijkheden ;)

(veel modules van php zijn niet threadsafe)

mguilmot
24/03/05, 10:40
zet hem op bluesdvd.nl/httpd.conf of zo :)

StefanK
24/03/05, 11:03
Hij staat er op hoor...

www.bluesdvd.nl/httpdconf.htm

Triloxigen
24/03/05, 11:38
Origineel geplaatst door StefanK
Hoi Triligen,

Hij is on-line hoor!

Greetz

Ah, kwam door pup-up blokker icm Firefox :)
(Niet echt cross-browser de website dus :( )

Wat voor coutner is het?

StefanK
24/03/05, 11:53
Nee, klopt, nog niet crossbrowser!
Dit is een tijdelijk versie tot de site open gaat. Dit heb ik zelf even gefabriceert en host hem even zelf. De bouw van de website gaat verzorgt worden door Dogteam en dan zal dit wel goed komen! De site wordt dan ook professioneel gehost.
Tot dan wil ik het minimaal goed werkend hebben voor explorer.
De counter is van Letstat. Dit heeft echter geen invloed. Probleem was daarvoor ook al.

Greetz

StefanK
24/03/05, 11:56
Moet nu naar mijn werk en ben er pas vanavond weer na tienen.

Ik hoop echt dat iemand mij kan helpen!!!!

Nogmaals, mijn httpd.conf staat op: www.bluesdvd.nl/httpdconf.htm

Bedankt alvast allemaal voor jullie reacties tot zover.

Greetz

TSG-Hans
24/03/05, 12:09
Als je nu eens leest wat ik heb gepost :huh:

Apache2 threaded en php werkt niet. Kies een andere mpm en je probleem is opgelost.

dotnetjunkie
24/03/05, 15:59
Origineel geplaatst door dreamhost_nl

IIS mag dan met Windows meegeleverd worden, dan wil dat nog niet zeggen dat het stabieler draait.
Goed lezen :) Ik schreef niet dat het DAARDOOR stabieler draait, dat waren 2 totaal losstaande opmerkingen.
Maar IIS draait dus wel degelijk stabieler (volledig stabiel zelfs) en sneller dan apache. Ik spreek uit ervaring en aan de hand van testresultaten :)
Persoonlijk zou ik NOOIT apache op een windows server gebruiken.

StefanK
24/03/05, 23:03
Okee, even verifieren.

Ik ben een leek op het gebied van apache en heb na veel ploeteren alles draaiende gekregen. Nogmaals, MET VEEL PLOETEREN!!! Ben al blij dat ik zover ben!!!!!!!!!
Uren, dagen, weken.... Toen ik er aan begon wist ik dus werkelijk niets he.

Okee Hans, Nu zeg jij:
"Apache2 threaded en php werkt niet. Kies een andere mpm en je probleem is opgelost."

Wil je me ook vertellen wat ik nu precies moet doen?

Thanks alvast. Greetz, stefan

TSG-Hans
24/03/05, 23:23
Heb je Apache 2 zelf gecompiled of heb je een binary (kant en klare installatie pakket ;) )gedownload?

Overigens, wat betreft de issues betreffende Apache2 threaded en php, Google maar eens wat ("Apache 2 threaded php"), en je vindt 412.000 resultaten.

StefanK
25/03/05, 00:36
Zelf van de bodem af gecompiled!!!!!!!!!!!!!!!!!!!!!!
En alles zelf uitgezocht!!!

apache_2.0.50-win32-x86-no_ssl.msi
mysql-4.0.21-win
php-4.3.9-Win32
phpMyAdmin-2.6.0-pl3
GuildFTPd
mailenablestandard