URL: https://www.overclockers.at/coding-stuff/php_taugliche_httpd_conf_gesucht_51676/page_1 - zur Vollversion wechseln!
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
hier ist meine httpd.conf
musst deine umgebungsvariablen musst du anpassen
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?
hast du schon probiert den server neuzustarten?
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.
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
Zitat von Gamerweiß jemand von euch wie man richtig den oscommerce shop 2.2 installiert?
Zitat von Weedmeisterdu 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
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
1. weg mitn Apache/2.0.43
2. nimm 1.3.xx
nimm, http://www.apache.org/dist/httpd/bi...-x86-no_src.exe
Bei der index.php fehlt übrigens das abschließende ";"
<?php phpinfo(); ?>
Zitat von pro1. weg mitn Apache/2.0.43
2. nimm 1.3.xx
nimm, http://www.apache.org/dist/httpd/bi...-x86-no_src.exe
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
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
Zitat von watchoutlaut php.net ist zwar php+apache 2.x.x nicht ganz in ordnung aber prinzipell funktionieren sollts schon
overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2025