Zum Inhalt springen

WebServer Problem mit PHP


Empfohlene Beiträge

Hi Leute!

ich hab mir mal wieder nen WebServer aufgesetzt. nutze nen apache 1.3.20 und php 4.0.8, aber irgendwie will das nicht!

nachdem ich alles eingerichtet hab, funktioniert das php leider nicht!

Auszug aus der Error-Log:

[Mon May 12 05:17:57 2003] [error] [client 127.0.0.1] Invalid URI in request GET /index.php HTTP/1.1

nu weiß ich garnix mehr :(

hab in meiner httpd.conf die einträge addtype application-xhttpd... und addtype action... eingetragen und die directoryindex bearbeitet. die dlls für php und die php.ini in den windows ordner und ne weitere dll in den system32 ordner (winxp) gepackt...

also woran kann das liegen?

grüße g

Link zu diesem Kommentar
Auf anderen Seiten teilen

  • 2 Wochen später...

Hast du die Pakete einzeln installiert, oder hast du es mit nem Kombipaket gemacht?

Falls einzeln, dann empfehle ich dir mal ein Kombipaket zu verwenden wie z.B.

foxserv oder easyphp

Musst halt mal Google bemühen, die Links weiss ich gerade nicht.

Einfach installieren, dann sollte es gehen.

Cu

Alex

Link zu diesem Kommentar
Auf anderen Seiten teilen

Original geschrieben von g-sus

apache 1.3.20 und php 4.0.8

Warum installierst du uralte Versionen?

Original geschrieben von g-sus

hab in meiner httpd.conf die einträge addtype application-xhttpd... und addtype action... eingetragen und die directoryindex bearbeitet. die dlls für php und die php.ini in den windows ordner und ne weitere dll in den system32 ordner (winxp) gepackt...

Du solltest dich entscheiden ob du php als cgi oder als module laufen läßt. Beides zusammen ist nicht notwendig und funktioniert wahrscheinlich auch nicht.

Ich würde das module nehmen.

Passender Bereich der install.txt

------------------------

Installing PHP for Apache as module

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Now that version 4.1 introduces a safer sapi module, we recommend

that you configure PHP as a module in Apache.

To accomplish this, you have to load the php4apache.dll in your

Apache httpd.conf.

!! NOTE !!

Whereever you load php4apache.dll from, php4apache.dll also

needs the php4ts.dll also included in the PHP4 distribution.

php4apache.dll depends on php4ts.dll which is loaded as soon as

Apache loads php4apache.dll. If php4ts.dll can't be found, you

usually get an error like (also see the "Problems?" section at

the end of the file):

Cannot load c:/php/sapi/php4apache.dll into server

So where does php4ts.dll has to be to be properly loaded ?

php4ts.dll is searched in the following order:

1) in the directory where apache.exe is start from

2) in the directory where php4apache.dll is loaded from

3) in your %SYSTEMROOT%\System32, %SYSTEMROOT%\system and

%SYSTEMROOT% directory.

Note: %SYSTEMROOT%\System32 only applies to Windows NT/2000/XP)

4) in your whole %PATH%

Note: What is %SYSTEMROOT% ? Depending on your Windows

installation this may be for example c:\winnt or C:\windows

Usually you would just copy it over to %SYSTEMROOT%\System32.

But if you want to have multiple PHP installations (for

whatever reason) this is a bad idea. For this circumstance the

safest thing is to let php4ts.dll reside in the same directory

where php4apache.dll is loaded from (see point 2 above).

After you've set up the file layout properly, you're ready to

finally configure Apache to load the PHP4 module. Just add the

following lines to your httpd.conf:

LoadModule php4_module c:/php/sapi/php4apache.dll

AddModule mod_php4.c

AddType application/x-httpd-php .php

Note: Especially newer versions of Apache do not need the

AddModule directive anymore, your milage may vary.

Where do I have to put the php.ini ?

The php.ini files is only searched in two places:

1) in your Apache installation directory (e.g. c:\apache\apache)

2) in your %SYSTEMROOT% directory.

------------------------

Gruß Jaraz

PS: Diese komplett Pakete sind meiner Meinung nach absoluter humbug. OK, es läuft dann, aber man hat keine Ahnung warum. Wenn ein das warum nicht interressiert, schön. Aber je mehr module/Programme laufen, die man nicht braucht, desdo größer wird das Sicherheits Risiko.

Link zu diesem Kommentar
Auf anderen Seiten teilen

thx für die antwort! :D

habs aber schon alleine hingekriegt... :P

greetz g

PS: alte version -> zu faul ne neue runter zu laden und nich sonderlich notwendig, da es nur ein netzwerk-interner webserver ist, der für coding-tests genutzt wird... :D

Link zu diesem Kommentar
Auf anderen Seiten teilen

Dein Kommentar

Du kannst jetzt schreiben und Dich später registrieren. Wenn Du ein Konto hast, melde Dich jetzt an, um unter Deinem Benutzernamen zu schreiben.

Gast
Auf dieses Thema antworten...

×   Du hast formatierten Text eingefügt.   Formatierung wiederherstellen

  Nur 75 Emojis sind erlaubt.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Editor leeren

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

Fachinformatiker.de, 2024 by SE Internet Services

fidelogo_small.png

Schicke uns eine Nachricht!

Fachinformatiker.de ist die größte IT-Community
rund um Ausbildung, Job, Weiterbildung für IT-Fachkräfte.

Fachinformatiker.de App

Download on the App Store
Get it on Google Play

Kontakt

Hier werben?
Oder sende eine E-Mail an

Social media u. feeds

Jobboard für Fachinformatiker und IT-Fachkräfte

×
×
  • Neu erstellen...