ich habe mich durch diverse Anleitungen zur Instalation von einem Apache Server mit mod_fcgid und PHP unter Windows gequält und bin doch nicht ans Ziel gekommen...
Bzgl. dem Aufsetzen des Servers habe ich geringe Kenntnisse und mich deswegen genau an die Anleitungen gehalten.Da diese mich aber nicht zum Ziel geführt haben, habe ich mit der Fehlersuche nun ein Problem. Ich versuche mal alle Infos die ich habe direkt in den ersten Post zu packen, wenn ich für euch wichtige Infos vergessen habe gebt mir bitte kurz Rückmeldung und ich reiche die gerne nach.
Was ich gemacht habe:
Apache/2.2.19 (Win32) installiert => läuft auch. "It works" Seite wurde angezeigt.
Hier mal die Apache Infos von PHPInfo:
- Code: Select all
apache2handler
Apache Version Apache/2.2.19 (Win32) PHP/5.2.17
Apache API Version 20051115
Server Administrator .....
Hostname:Port ....
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 5
Virtual Server No
Server Root C:/Programme/Apache Software Foundation/Apache2.2
Loaded Modules core mod_win32 mpm_winnt http_core mod_so mod_php5 mod_actions mod_alias mod_asis mod_auth_basic mod_authn_default mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_dir mod_env mod_include mod_isapi mod_log_config mod_mime mod_negotiation mod_setenvif
PHP/5.2.17 installiert. Läuft auch, siehe phpinfo() Ausgabe.
mod_fcgid installiert. Ob das läuft weiß ich leider nicht. In der error.log Datei des Apache gibt er mir folgende Zeile aus
- Code: Select all
[Fri Jul 08 12:00:42 2011] [notice] Apache/2.2.19 (Win32) mod_fcgid/2.3.6 PHP/5.2.17 configured -- resuming normal operations
Der Apache startet auch und läuft. Aber ich kann keine PHP Dateien mehr Aufrufen, wenn ich den mod_fcgid in der httpd.conf lade.
- Code: Select all
LoadModule fcgid_module modules/mod_fcgid.so
Wenn diese Zeile nicht auskommentiert ist erhalte ich folgende Fehlermeldung
- Code: Select all
"Forbidden
You don't have permission to access /index.php on this server."
Ist sie auskommentiert sehe ich normal meine phpinfo() Seite.
Hier mal die drei Ausschnitte aus der http.conf an denen ich etwas geändert habe.
- Code: Select all
#
# 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
#
[b]LoadModule php5_module "c:/php-5.2.17-Win32-VC6-x86/php5apache2_2.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "c:/php-5.2.17-Win32-VC6-x86/"
LoadModule fcgid_module modules/mod_fcgid.so
[/b]
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
- Code: Select all
<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi .php
# Where to look for the php.ini file?
FcgidInitialEnv PHPRC "c:/php-5.2.17-Win32-VC6-x86"
# Set PHP_FCGI_MAX_REQUESTS to greater than or equal to FcgidMaxRequestsPerProcess
# to prevent php-cgi process from exiting before all requests completed
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 1000
# Maximum requests a process should handle before it is terminated
FcgidMaxRequestsPerProcess 1000
# Maximum number of PHP processes
FcgidMaxProcesses 15
# Number of seconds of idle time before a php-cgi process is terminated
FcgidIOTimeout 120
FcgidIdleTimeout 120
#Path to php-cgi
FcgidWrapper "c:/php-5.2.17-Win32-VC6-x86/php-cgi.exe" .php
# Define the MIME-Type for ".php" files
AddType application/x-httpd-php .php
</IfModule>
- Code: Select all
<Directory "c:/Programme/Apache Software Foundation/Apache2.2/htdocs">
Options Indexes FollowSymLinks ExecCGI
Order allow,deny
Allow from all
AllowOverride All
</Directory>
Vielen Dank schon mal falls sich wirklich jemand bis hier hin durch meinen Post gearbeitet hat!
Über Hilfe (für einen Anfänger verständlich) würde ich mich sehr freuen.
Freundliche Grüße
Localhorst