http.conf fehler bei apache

Nilman

Mitglied
Hab ein Problem

Immer wenn ich apache2.0 starten will kommt die Ausgabe, das "Can not load php4apache.dll module" Hab schon viele Beiträge durchsucht und auch befolgt, komme aber trotzdem nicht weiter!

Habe meine http.conf hier mal hingestellt:
http://mitglied.lycos.de/dawipo/konfigurationsdatei.txt

Könnt ihr bitte mal schauen was falsch ist?

Meine Verzeichnisse:
Php:
C:\php
DocumentRoot
c:\www
Apache:
C:\Programme\Apache Group\Apache2


Vielen Dank
 
hi,
ich würde es mal so probieren
1.
# local testing and development, you may use 127.0.0.1 as the server name.
#
ServerName localhost

damit hatte ich auch mal Startprobleme

2.
#
DocumentRoot "C:\www" dieses muß gleich sein wie unten und so C:/www
Slash kein Backslash


#
# Each directory to which Apache has access, can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# permissions.
#
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:\web\www"> dieses muß gleich sein wie oben und so C:/www
Slash kein Backslash und ohne web, oder oben auch web.

PS das ist nicht wie im Windows Explorer ;-)
 
Zuletzt bearbeitet:
Bist du sicher, dass sich die php4apache.dll im Verzeichnis:
[C:/Programme/Apache Group/Apache2/modules/]
..befindet?

Bei mir ist die z.B. im PHP-Verzeichnis unter "sapi" .... wenn sie das bei dir auch ist, ersetze die entsprechende Zeile in der httpd.conf durch
Code:
LoadModule php4_module c:/php/sapi/php4apache.dll
(oder halt den entsprechenden Pfad, wo sie sich sonst versteckt hat...)
 
Also ich denke mal ich habe jetz alle Fehler korrigiert, aber jetzt kommt ne Fehlermeldung, dass auf Zeile 59 "invalid command server type". Ich konnte aber nichts finden!

Was jetzt?
 
Original geschrieben von Nilman
Also ich denke mal ich habe jetz alle Fehler korrigiert, aber jetzt kommt ne Fehlermeldung, dass auf Zeile 59 "invalid command server type". Ich konnte aber nichts finden!

Was jetzt?

Was steht denn in der Zeile?
 
Hab mal Zeilen 50 - 65 rauskopiert:

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

#
# ServerType is either inetd, or standalone. Inetd mode is only supported on
# Unix platforms.
#
ServerType standalone

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
ServerRoot "C:/Programme/Apache Group/Apache2/"
----------------------------------------------------------------------------------------------------------
 
Da ich die Nase voll hatte, habe apache jetzt nochmal neu installiert und es läuft auch. Aber immer wenn ich ne php - Datei aufrufe, bietet er mir diese zum download an. Könnt ihr mir nochmal sagen, wo ich diese Zeilen hinpacken muss?:


AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps

AddModule mod_php4.c


Denke danach hab ich`s dann endlich
 
Original geschrieben von Nilman
Hab mal Zeilen 50 - 65 rauskopiert:
ServerRoot "C:/Programme/Apache Group/Apache2/"
----------------------------------------------------------------------------------------------------------

# Do NOT add a slash at the end of the directory path.

da der Apache auf C: ist reicht
ServerRoot "/Programme/Apache Group/Apache2"
kein Slash am Ende, nur "
 
Original geschrieben von Nilman
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
AddModule mod_php4.c
AddModule mod_php4.c
AddType application/x-httpd-php .php .php4 .php3
AddType application/x-httpd-php-source .phps

nach dem Modul der AddType
 
Ich glaub ich bin zu doof dafür!
Jetzt kommt schon wiedert ne fehlermeldung, apache läuft aber trotzdem. Kann aber weiterhin keine php dateien aufrufen

Kannst du mir mal bitte in die angehangene Datei die Zeilen richtig eintragen?
Aber nur die hier, den rest hab ich schon:

AddModule mod_php4.c
AddType application/x-httpd-php .php .php4 .php3
AddType application/x-httpd-php-source .phps
 

Anhänge

  • httpd.txt
    33,9 KB · Aufrufe: 34
Zurück