php + apache

gemuse

Active Member
Hallo!

ich hab nun zu meinem Apache php4 über die Ports installiert ( /usr/ports/lang/php4)

die php.ini hab ich schon nach meinen Wünschen nach angepasst, nun muss ich ja noch php über die httpd.conf meines Apaches irgendwie integrieren.

unter windows hab ich einfach die php.exe eingebunden über ScriptAlias usw...

aber wie ich das nun machen soll... kein plan :)

hoffe dass mir jemand helfen kann

gruß
gemuse
 
Wie wäre es, einfach mal zu testen ob es nicht bereits schon geht?
Das sollte es nämlich, da der Port afaik selbstätig die httpd.conf anpasst.

Wenn nicht, wäre es sinnvoll, die pkg_message in ports/lang/php4 anzuschauen:
You have installed the php4 package.

Have a look at the php4 port if you need additional extensions other than
CTYPE, MYSQL, OVERLOAD, PCRE, POSIX, SESSION, TOKENIZER, XML and ZLIB.

You can find it at
ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/ports/lang/php4.tar

Make sure index.php is part of your DirectoryIndex.

You should add the following to your Apache configuration file:

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

Gruß
 
Zurück
Oben