PHP taugliche httpd.conf gesucht!

Seite 1 von 3 - Forum: Coding Stuff auf overclockers.at

URL: https://www.overclockers.at/coding-stuff/php_taugliche_httpd_conf_gesucht_51676/page_1 - zur Vollversion wechseln!


schrieb am 14.10.2002 um 13:46

hallo!
ich krieg leider nicht zusammen, dass die httpd.conf php tauglich wird!
Mein Apache Server will einfach keine PHP Files darstellen!
Was ist das Problem?

Kann mir vielleicht jemand ne C:\php taugliche httpd.conf geben?




mfg
gamer


Silvasurfer schrieb am 14.10.2002 um 13:52

hier ist meine httpd.conf

musst deine umgebungsvariablen musst du anpassen


schrieb am 14.10.2002 um 14:06

hm, ist eh ähnlich wie bei mir!
ich glaub ich lass php mal.
werd mich lieber mit myaql beschäftigen!


weiß jemand von euch wie man richtig den oscommerce shop 2.2 installiert?


Silvasurfer schrieb am 14.10.2002 um 14:08

hast du schon probiert den server neuzustarten?


pro schrieb am 14.10.2002 um 15:48

LoadModule php4_module modules/php4apache.dll

AddModule mod_php4.c

<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>

AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

mehr isses auch net kopier php4apache.ddl aus C:\php\sapi\ nach c:\wos\was\i\apache\modules ......... ,

php.ini-dist aus c:\php nach c:\winnt kopiern

php4ts.dll von c:\php nach c:\winnt\system32

und um zu testn obs funzt, einfach wwi.php mit dem inhalt : <?php phpinfo() ?>
im docroot anlegen.

net stop apache
net start apache

fertig.


Weedmeister schrieb am 14.10.2002 um 15:56

du brauchst eigentlich nur des hinzufügen und halt auf deine pfade umändern wo du dei php hinkopiert hast:

#LoadModule php4_module D:/WAMP/PHP/sapi/php4apache.dll
AddType application/x-httpd-php .php4
ScriptAlias /php4/ "D:/WAMP/PHP/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php

und dann änderst die php.ini-dist in php.ini um und kopierstast ins winnt oder windows, system und system32 verzeichnis.

edit: php.ini-dist is im php ordner drin

dann sollt die ******e rennen.

natürlich muassas mysql auch rennen


acid schrieb am 14.10.2002 um 16:01

Zitat von Gamer
weiß jemand von euch wie man richtig den oscommerce shop 2.2 installiert?

Ohne PHP, gar nicht

Ansonsten die Datenbank erstellen, die Tables mit Hilfe des sql-files erstellen und die Files raufkopieren.


pro schrieb am 14.10.2002 um 17:23

Zitat von Weedmeister
du brauchst eigentlich nur des hinzufügen und halt auf deine pfade umändern wo du dei php hinkopiert hast:

#LoadModule php4_module D:/WAMP/PHP/sapi/php4apache.dll
AddType application/x-httpd-php .php4
ScriptAlias /php4/ "D:/WAMP/PHP/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php

und dann änderst die php.ini-dist in php.ini um und kopierstast ins winnt oder windows, system und system32 verzeichnis.

edit: php.ini-dist is im php ordner drin

dann sollt die ******e rennen.

natürlich muassas mysql auch rennen


na bitte was schreibst zu zam?


schrieb am 14.10.2002 um 17:39

Ich hab grad das gemacht was Ihr mir gesagt habt und danach wollte der Server nimmer starten! Jetzt hab ich die standard datei wieder!

Währt Ihr so lieb und könntet mal schauen was nicht passt? http://212.186.104.141


pro schrieb am 14.10.2002 um 18:33

1. weg mitn Apache/2.0.43
2. nimm 1.3.xx



nimm, http://www.apache.org/dist/httpd/bi...-x86-no_src.exe


jives schrieb am 14.10.2002 um 18:36

Bei der index.php fehlt übrigens das abschließende ";" :)
<?php phpinfo(); ?>


schrieb am 14.10.2002 um 18:43

Zitat von pro
1. weg mitn Apache/2.0.43
2. nimm 1.3.xx



nimm, http://www.apache.org/dist/httpd/bi...-x86-no_src.exe


was is an dem besser?


watchout schrieb am 14.10.2002 um 18:45

laut php.net ist zwar php+apache 2.x.x nicht ganz in ordnung aber prinzipell funktionieren sollts schon

@gamer:
wie wär's, wenn du folgenden Grundsatz beachten würdest?
rtfm
http://www.php.net/manual/de/installation.php


pro schrieb am 14.10.2002 um 20:00

und noch genauer:

If you are installing Apache/1.3.X (my X = 24) on WinXP, you can:
- install PHP to c:\program files\php (%PHPDIR%)
- install Apache to c:\program files\apache group\apache (%APDIR%) and choose
to run it like a service
- copy php4ts.dll to %WINDIR%\system32
- copy %PHPDIR%\sapi\php4apache.dll to %APDIR%\modules
- rename php.ini-optimized to php.ini (leave it in %PHPDIR%)
- change %PHPDIR%\php.ini to suit your šath (ie. path for extensions)
- add to %APDIR%\conf\httpd.conf:

- after all other LoadModule directives (my line 194.)

LoadModule php4_module modules/php4apache.dll

- after all other AddModule directives (my line 242)

AddModule mod_php4.c

(note that every other instruction said "AddModule mod_php.c", which gave me
some trouble :)

- after other AddType directives (my lines 816 and 817)

AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

Restart Apache with Start/Run:

net stop apache
net start apache

Create a file called info.php and place <?php phpinfo() ?> in it, save the file
in your Apache DocumentRoot (find it in %APDIR%\conf\httpd.conf) and access the
file with your browser (throught Apache, ofcourse ;)

Then modify the %PHPDIR%\php.ini to suit your needs. HTH.


is aber ohnehin das selbe was ich dir gsagt hab. machs schritt fuer schritt so wie es da steht.. dann gibs keine probs


Philipp schrieb am 14.10.2002 um 23:00

Zitat von watchout
laut php.net ist zwar php+apache 2.x.x nicht ganz in ordnung aber prinzipell funktionieren sollts schon

Ab PHP 4.2.2 wird Apache 2.x offiziell unterstützt :)




overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2025