PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : apache2 und PHP 4.3.4



supperlocalhost
15.02.04, 20:54
hallo ich habe den apache2 installirt
und dan php 4.3.4
aber das php geht nicht im apache2
ich hab mir die httpd.conf geschaut da steh was von php aber ich weis nicht genug darüber.
was müsste ich den machen das das php geht ??

lef
15.02.04, 21:03
schau mal da http://www.apachefriends.de , da gibts des komplette LAMP sogar mit FTP nur entpacken und funktioniert, da kannst du dir auch dann in den config alles anschauen wie was eingetragen gehört...

supperlocalhost
15.02.04, 21:06
ích hab ja alle hinbekommen aber ich muss noch irgendwas in die httpd.conf rein das weis ich ich weis plos nicht was

Jorge
15.02.04, 21:06
Aus der PHP INSTALL Datei (PHP Sourcen):

The only thing left to do is to edit your httpd.conf file and make sure the
PHP 4 mime type is there and uncommented. You need a line that looks like
this:

AddType application/x-httpd-php .php

Then restart your server (apachectl restart) and you should be able to
serve up PHP files now. Make a test file called test.php and put some
PHP tags in it. Like <?phpinfo()?>, for example.

supperlocalhost
16.02.04, 13:12
Naja das php geht jetzt aber nicht so richtig
voher habe ich einfach apt-get install apache php4 und mysql-php4 jetzt habe ich das alles selber gemacht also die neste version von den page runtergeladen und installirt.

halt nur das php also irgenwie alle funtionen gehen nicht alle


Original geschrieben von Jorge
Aus der PHP INSTALL Datei (PHP Sourcen):

The only thing left to do is to edit your httpd.conf file and make sure the
PHP 4 mime type is there and uncommented. You need a line that looks like
this:

AddType application/x-httpd-php .php

Then restart your server (apachectl restart) and you should be able to
serve up PHP files now. Make a test file called test.php and put some
PHP tags in it. Like <?phpinfo()?>, for example.

lef
16.02.04, 19:15
bei mir stehen diese beiden Zeilen in der httpd.conf

in der LoadModules-Section:
LoadModule php4_module modules/libphp4.so

und weiter unten:
AddType application/x-httpd-php .php .php3 .php4

das bedutet dass php als module läuft, du kannst es aber auch als cgi installieren, dann muß da natürlich wa sabderes stehen...

Google sagt du sollst mal das anschauen http://lamps.efactory.de/lamps-2-0.shtml ;-)