"We are back" « oc.at

PHP taugliche httpd.conf gesucht!

Gamer 14.10.2002 - 13:46 2146 38
Posts

Guest

Deleted User
Registered: n/a
Location:
Posts: n/a
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

I do my own stunts
Avatar
Registered: Feb 2002
Location: kärnten
Posts: 4595
hier ist meine httpd.conf

musst deine umgebungsvariablen musst du anpassen
httpd_conf_17566.txt (downloaded 74x)

Guest

Deleted User
Registered: n/a
Location:
Posts: n/a
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

I do my own stunts
Avatar
Registered: Feb 2002
Location: kärnten
Posts: 4595
hast du schon probiert den server neuzustarten?

pro

OC Addicted
Registered: Apr 2001
Location: Graz
Posts: 1382
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

Big d00d
Avatar
Registered: Aug 2002
Location: Graz
Posts: 168
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

Legend
i am the cure
Avatar
Registered: Jun 2000
Location: Ried
Posts: 1938
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.
Bearbeitet von acid am 14.10.2002, 16:03

pro

OC Addicted
Registered: Apr 2001
Location: Graz
Posts: 1382
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?

Guest

Deleted User
Registered: n/a
Location:
Posts: n/a
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

OC Addicted
Registered: Apr 2001
Location: Graz
Posts: 1382
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

And the science gets done
Avatar
Registered: Sep 2001
Location: Baden
Posts: 3548
Bei der index.php fehlt übrigens das abschließende ";" :)
<?php phpinfo(); ?>

Guest

Deleted User
Registered: n/a
Location:
Posts: n/a
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

Legend
undead
Avatar
Registered: Nov 2000
Location: Off the grid.
Posts: 6845
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

OC Addicted
Registered: Apr 2001
Location: Graz
Posts: 1382
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

Here to stay
Registered: Jul 2001
Location: Wien
Posts: 1970
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 :)
Kontakt | Unser Forum | Über overclockers.at | Impressum | Datenschutz