Dr.Colossos: PHP + Apache unter WinXP Pro ... gleichzeitige Requests

Beitrag lesen

Hi Felix,

danke für deine Antwort.

Ich hätte schon noch mehr geposted, wenn ich eine Antwort bekommen hätte, an was es in etwa liegen könnte ... ich denke nicht dass ein Post gut zu lesen ist, in dem PHP Quellcode, php.ini, phpinfo() und httpd.conf etc. einfach mal reingepasted werden ... ich habe/hatte ja keine echte Ahnung an was es liegt.

In der http.conf hätt ich schon mal nachgesehen, hab aber im Schnellverfahren nix gefunden, außer
...
ThreadsPerChild 250
MaxRequestsPerChild  0
...

Unten findest du meine httpd.conf mehr von Nöten? ... Und auch wenn ich es sehr ungern zugebe, ich nutze das WAMP Packet ... aus reiner Bequemlichkeit ... sicher nicht die beste Wahl, ich weiß dass, also macht mich nicht zu sehr nieder deswegen.

ThreadsPerChild: constant number of worker threads in the server process

MaxRequestsPerChild: maximum  number of requests a server process serves

ThreadsPerChild 250
MaxRequestsPerChild  0

ServerRoot "C:/programme/wamp/bin/apache/apache2.2.6"

Listen: Allows you to bind Apache to specific IP addresses and/or

Listen 80

Dynamic Shared Object (DSO) Support

LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.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 deflate_module modules/mod_deflate.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 imagemap_module modules/mod_imagemap.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_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.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 php5_module "C:/programme/wamp/bin/php/php5.2.5/php5apache2_2.dll"

'Main' server configuration

ServerAdmin webmaster@localhost

ServerName gives the name and port that the server uses to identify itself.

ServerName localhost:80

DocumentRoot: The directory out of which you will serve your

DocumentRoot "D:/Programming/"

Each directory to which Apache has access can be configured with respect

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all
</Directory>

Note that from this point forward you must specifically allow

<Directory "D:/Programming/">

Options Indexes FollowSymLinks

AllowOverride all

#
    # Controls who can get stuff from this server.
    #
#   onlineoffline tag - don't remove
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
    Allow from *removed*
    Allow from *removed*
    Allow from *removed*
</Directory>

DirectoryIndex: sets the file that Apache will serve if a directory

is requested.

<IfModule dir_module>
    DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>

The following lines prevent .htaccess and .htpasswd files from being

viewed by Web clients.

<FilesMatch "^.ht">
    Order allow,deny
    Deny from all
</FilesMatch>

ErrorLog: The location of the error log file.

ErrorLog "C:/programme/wamp/logs/apache_error.log"

LogLevel: Control the number of messages logged to the error_log.

LogLevel warn

<IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
    LogFormat "%h %l %u %t "%r" %>s %b" common

<IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O" combinedio
    </IfModule>

#
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    CustomLog "C:/programme/wamp/logs/access.log" common

#
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    #CustomLog logs/access.log combined
</IfModule>

<IfModule alias_module>
    #
    # Redirect: Allows you to tell clients about documents that used to
    # exist in your server's namespace, but do not anymore. The client
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://localhost/bar

#
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.

#
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ "cgi-bin/"

</IfModule>

"C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin" should be changed to whatever your ScriptAliased

CGI directory exists, if you have that configured.

<Directory "cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#!c:/program files/perl/perl

DefaultType text/plain

<IfModule mime_module>

TypesConfig conf/mime.types

AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php3

</IfModule>

The mod_mime_magic module allows the server to use various hints from the

contents of the file itself to determine its type.  The MIMEMagicFile

directive tells the module where the hint definitions are located.

#MIMEMagicFile conf/magic

Customizable error responses come in three flavors:

1) plain text 2) local redirects 3) external redirects

Some examples:

#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://localhost/subscription_info.html

EnableMMAP and EnableSendfile: On systems that support it,

memory-mapping or the sendfile syscall is used to deliver

files.  This usually improves server performance, but must

be turned off when serving from networked-mounted

filesystems or if support for these functions is otherwise

broken on your system.

#EnableMMAP off
#EnableSendfile off

Supplemental configuration

The configuration files in the conf/extra/ directory can be

included to add extra features or to modify the default configuration of

the server, or you may simply copy their contents here and change as

necessary.

Server-pool management (MPM specific)

#Include conf/extra/httpd-mpm.conf

Multi-language error messages

#Include conf/extra/httpd-multilang-errordoc.conf

Fancy directory listings

Include conf/extra/httpd-autoindex.conf

Language settings

#Include conf/extra/httpd-languages.conf

User home directories

#Include conf/extra/httpd-userdir.conf

Real-time info on requests and configuration

#Include conf/extra/httpd-info.conf

Virtual hosts

#Include conf/extra/httpd-vhosts.conf

Local access to the Apache HTTP Server Manual

#Include conf/extra/httpd-manual.conf

Distributed authoring and versioning (WebDAV)

#Include conf/extra/httpd-dav.conf

Various default settings

#Include conf/extra/httpd-default.conf

Secure (SSL/TLS) connections

#Include conf/extra/httpd-ssl.conf

Note: The following must must be present to support

#       starting without SSL on platforms with no /dev/random equivalent
#       but a statically compiled-in mod_ssl.

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

Include "C:/programme/wamp/alias/*"